"Scott, Deborah" wrote:
> Does anyone know where I can get a script that looks into the contents of a
> directory and outputs the contents of the directory into a list that is
> displayed on an HTML page? (Also, the names should contain hyperlinks to
> those contents.)
>
> Or, how would I do this?
On Wed, 19 Feb 2003, Scott, Deborah wrote:
> Does anyone know where I can get a script that looks into the contents of a
> directory and outputs the contents of the directory into a list that is
> displayed on an HTML page? (Also, the names should contain hyperlinks to
> those contents.)
Deborah,
use File::Slurp;
@files = read_dir("/home/joemama/public_html/files");
# may be readdir see http://search.cpan.org for details
foreach $f(@files) {
print "http://www.domain.com/files/$f\";> $f \n";
}
>
>
> Does anyone know where I can get a script that looks into the
> contents o