Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: array of files in directory

by sulfericacid (Deacon)
on Mar 14, 2006 at 01:55 UTC ( [id://536440]=note: print w/replies, xml ) Need Help??


in reply to array of files in directory

Make use of readdir().
my $dir = "."; opendir(DIR,$dir) or die "Error: $!"; my @files = readdir(DIR) or die "Error: $!"; closedir(DIR); print @files;


"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-25 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found