There's more than one way to do things | |
PerlMonks |
Re^2: Using glob in file test gives "Use of uninitialized value in -e" warning.by choroba (Cardinal) |
on Dec 07, 2017 at 13:20 UTC ( [id://1205092]=note: print w/replies, xml ) | Need Help?? |
What glob returns depends on the context. In scalar context (which -e imposes) it iterates over the matching files, and returns undef when there are no more files. If nothing matches the glob, it returns undef directly.
In Section
Seekers of Perl Wisdom
|
|