Home: Perl Programming Help: Beginner:
Searching directories and printing contents to selected webpages



waherne
Novice

Feb 14, 2000, 7:05 AM


Views: 1851
Searching directories and printing contents to selected webpages

Hi, would anyone have a script that would search directories (3 deep from local) and put the contents of each ultimate subdirectory into a webpage?

I do not want to specify the name of each subdirectory (and subdirectories within those)as there will be too many of them. So the starting point will be the local"."

For example:

Directory
./DirA/SubdirB/LevelA/file1.htm
./DirA/SubdirB/LevelA/file2.htm
./DirB/SubdirC/LevelB/file3.htm
./DirB/SubdirC/LevelC/file4.htm

This would result in the generation of 3 webpages for files(1&2,3,4). The first webpage would be called:

./DirA/SubdirB/LevelA/page.htm

The second webpage would be called:

./DirB/SubdirC/LevelB/page.htm

Thank you for your continued help.

Regards,

Willie