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

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.

Comment on Re: File::find and skipping directories
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-11-27 10:40 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (724 votes), past polls