Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl and Dynamic Directoy Display

Status
Not open for further replies.

sgorton

MIS
May 1, 2003
1
US
I would like to know how to read the contents of my file structure and display this in a nice graghical way. I know PERL can do this, but not sure how.

DIR-|
File.name

and then PERL will generate a html page that makes it look nice to the users. Also if something new is added to the directory it shows up automatically.

Is this Possible?
 
You could have the following to read a directory list:

opendir DIR, ".";
my @files = readdir DIR;
closedir DIR;

Then build a hash for each directory you find. Replace "." (which referes to the current directory) with the a named directory or scalar with a directory path.

Barbie
Leader of Birmingham Perl Mongers
 
Hai,
I have a problem reading directory when the directory name is "6.0". THe problem does not come if it has been "v6.0".
Anybody please.
Regards
Rajkumar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top