Re: Strange problem with glob <>
- From: mumia.w.18.spam+nospam@xxxxxxxxxxxxx (Mumia W.)
- Date: Thu, 28 Dec 2006 04:39:18 -0600
On 12/28/2006 01:42 AM, Madhur Kashyap wrote:
Hi there,
Have a look at these two different implementations. IMPL2 works somehow. The
problem I am facing is that the glob <$pat> does not return any value in
IMPL1 but it returns in IMPL2. Can somebody tell what could be the problem.
[...]
Use strictures and warnings, and you'll probably see that <$pat> is being interpreted as an attempt to read from a file. Use glob($pat) instead.
The Switch module evidently installs a source filter that has some strange effects on Perl code. I advise avoiding it.
.
- Follow-Ups:
- Re: Strange problem with glob <>
- From: Madhur Kashyap
- Re: Strange problem with glob <>
- References:
- Strange problem with glob <>
- From: "Madhur Kashyap"
- Strange problem with glob <>
- Prev by Date: Re: HoA building
- Next by Date: Re: Strange problem with glob <>
- Previous by thread: Re: Strange problem with glob <>
- Next by thread: Re: Strange problem with glob <>
- Index(es):
Relevant Pages
|