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!
In reply to Re^2: Strange behaviour when using glob in if condition
by LanX
in thread Strange behaviour when using glob in if condition
by yulivee07
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |