Preserved Topic: list contents of a directory |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: us |
posted 10-07-2001 22:28
I'm trying to write a simple script where you give it the path, and the extension and it will output all the files and a link to each. (I can't get the variables to be the right path /var/www is always there) The url http://localhost/cgi-bin/listdir.cgi?path=/&type=html code: #!/usr/bin/perl -w outputs this: |
Paranoid (IV) Inmate From: California |
posted 10-08-2001 01:14
Hi JakeB, code: my $url = $path; #copy path to url
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 10-08-2001 18:06
JakeB, why do you want to re-invent the wheel? |