Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2016-10-29 00:21 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (387 votes). Check out past polls.