CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Reading Directory Structure



Jun 26, 2005, 12:32 PM

Post #1 of 2 (453 views)
Reading Directory Structure Can't Post

I would like to know how I can observe the directory structure of the server. It would be nice if I could make an index myself instead of using Apache's built in Index because I'd like to make some changes and if I knew how to read the directory and basically put foldernames into @folders and then I could use foreach...etc. I just need to know how to get folder structures. Thanks!
Wink Wink
Visit my new site devoted to reviewing the latest pocketpc products and news that I built in cgi-perl!


Jun 26, 2005, 1:47 PM

Post #2 of 2 (450 views)
Re: [benn600] Reading Directory Structure [In reply to] Can't Post

You really should be posting in the beginners forum. All of your questions are beginner type questioons. That being said....

you can use File::Find to recurse through directories or use the opendir() and readdir() functions to list files and directories on the server.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives