Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Getting files in a directory tree

by jweed (Chaplain)
on Mar 04, 2004 at 05:11 UTC ( #333782=note: print w/replies, xml ) Need Help??


in reply to Getting files in a directory tree

The Ram speaketh:
use File::Find; sub process_file { #do what you want to a file } find(\&process_file, /this/is/a/directory/to/parse
Please see the File::Find docs for more information.



Code is (almost) always untested.
http://www.justicepoetic.net/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2018-11-14 13:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (171 votes). Check out past polls.

    Notices?