Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How do I read files from a folder and place them into a list?

by Ovid (Cardinal)
on May 10, 2001 at 00:37 UTC ( [id://79242]=note: print w/replies, xml ) Need Help??


in reply to How do I read files from a folder and place them into a list?

If you want the files in the current directory, you could do something like this:
my $somedir = '.'; opendir DH, $somedir or die "Cannot open $somedir: $!"; my @files = grep { ! -d } readdir DH; closedir DH;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found