in reply to Re: directory list
in thread directory list
UPDATE:use strict; use CGI; use CGI::Carp( 'fatalsToBrowser' ); use HTML::Entities; my $q = CGI->new(); my $dir = '\images'; # or some other default. chdir( $dir ) or die "Couldn't cd to '$dir', $!"; my @images = map {glob( "*.$_" )} qw( gif jpg jpeg tif xif bmp ); @images = map { encode_entities( $_ ) } @images; print $q->header(), $q->start_html(); print $q->h1( "My Image files" ); print "\n<UL>\n"; print "<LI>${_}\n" for @images; print "</UL>\n"; print $q->end_html();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: directory list
by merlyn (Sage) on Sep 21, 2000 at 02:09 UTC | |
by Adam (Vicar) on Sep 21, 2000 at 02:15 UTC | |
by Ovid (Cardinal) on Sep 21, 2000 at 02:26 UTC | |
by merlyn (Sage) on Sep 21, 2000 at 02:24 UTC |