Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2018-07-23 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (459 votes). Check out past polls.

    Notices?