Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Strange behaviour when using glob in if condition

by LanX (Saint)
on Apr 11, 2017 at 21:25 UTC ( #1187691=note: print w/replies, xml ) Need Help??


in reply to Re: Strange behaviour when using glob in if condition
in thread Strange behaviour when using glob in if condition

Brilliant analysis!

Sounds like we need a warning if glob is used in scalar context with a pattern holding interpolated variables. :/

I for my part will now only use for glob() constructs for looping over a static list.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1187691]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-12-11 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?