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

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968175]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2018-03-25 01:51 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.