![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Strange behaviour when using glob in if conditionby haukex (Archbishop) |
on Apr 11, 2017 at 13:31 UTC ( #1187642=note: print w/replies, xml ) | Need Help?? |
glob skips filenames beginning with a dot, try return if glob("$directory/{*,.*}"); Update: Actually, upon re-reading the question I think I misunderstood what you are trying to do. Update 2: Yep, see my other reply for the solution.
In Section
Seekers of Perl Wisdom
|
|