Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
XP is just a number
 
PerlMonks  

Re: Noob File::Find issue

by GrandFather (Cardinal)
on Apr 30, 2012 at 23:00 UTC ( #968175=note: print w/ replies, xml ) Need Help??


in reply to Noob File::Find issue

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:

Name "File::File::dir" used only once: possible typo at noname.pl line + 12.

when you ran the script.

True laziness is hard work


Comment on Re: Noob File::Find issue
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2014-04-16 06:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (417 votes), past polls