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

RE: How do I read all files in a directory recursively?

by setantae (Scribe)
on Mar 04, 2000 at 05:05 UTC ( [id://4850]=note: print w/replies, xml ) Need Help??


in reply to How do I read all files in a directory recursively?

Umm, from "I have a group of files in the same directory", I think you've misled some of the monks here with your use of the word recursive and see no reason why you can't just do:
foreach $f (<*>) { do stuff with $f; }
This does assume that you are in the correct directory already.

setantae@eidosnet.co.uk|setantae|http://www.setantae.uklinux.net

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found