Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: File::find and skipping directories

by Paladin (Priest)
on Jun 01, 2004 at 20:24 UTC ( #358535=note: print w/replies, xml ) Need Help??


in reply to File::find and skipping directories

Add the line:
$File::Find::prune = 1;
in your first if block right before the return. This tells File::Find not to recurse into that dir. Check the perldoc for more info.

You might also want to check if it is indeed a dir in that same if block, instead of just checking the UID.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://358535]
help
Chatterbox?
[jedikaiti]: 'ello, Monklings
[karlgoethebier]: hello

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-06-28 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (642 votes). Check out past polls.