Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Noob File::Find issue

by GrandFather (Sage)
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 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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-12-02 03:11 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (32 votes), past polls