|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Noob File::Find issueby GrandFather (Cardinal) |
| on Apr 30, 2012 at 23:00 UTC ( #968175=note: print w/ replies, xml ) | Need Help?? |
|
The main issue is that Perl is case sensitive and that the module is actually File::Find. On a case insensitive file system you get weird results such as this because the module file gets found despite the error in the file name case, but the package isn't found. Note that you need $File::Find::dir to access the dir variable too. This should have been caught with warnings - you'd have gotten:
when you ran the script.
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||