Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Listing a directory

by beebware (Pilgrim)
on Feb 24, 2002 at 22:06 UTC ( [id://147219]=note: print w/replies, xml ) Need Help??


in reply to Listing a directory

You mean something like:
$dirtoget="/home/yourname/www/images/"; opendir(IMD, $dirtoget) || die("Cannot open directory"); @thefiles= readdir(IMD); closedir(IMD);
A quick search on Google for opendir contents of directory produced this page which may of of use to you. But it really is that simple!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2025-02-08 23:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.