Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: traversing directory's

by athomason (Curate)
on Mar 12, 2001 at 01:25 UTC ( [id://63663]=note: print w/replies, xml ) Need Help??


in reply to traversing directory's

File::Find actually sounds ideal for what you want, and it will most likely do it better than you could yourself. Typical file-tree depth searchers get hung up on symbolic links if you don't explicitly take them into account. File::Find will handle this and other problems with aplomb. It's also very flexible; just plug in your matching function (wanted() in the docs) and you're up and running. See Corion's review and following thread for additional considerations, and the local copy of the |File::Find doc for how to use it. And of course, there are a boatload of existing nodes around the site (see above posts) relating to the module.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-24 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found