Hi I am trying to do these
use strict;
use CGI;
my $list = new CGI;
my $fileDir = "c:/files/err";
my @files;
opendir DIR, "$fileDir" or die "Can't open $fileDir $!";
@files = grep { /\.(?:txt|zip|jpg|mp3|err|csv)$/i } readdir DIR;
closedir DIR;
print $list->header("text/html"),
$list->start_html("Archivos in $fileDir"),
$list->p("Estos son los archivos de $fileDir");
foreach my $file (@files) {
# print $list->p($list->a({-href=>$fileDir."/".$file},$file)
print $list->p($list->a({-href=>"/cgi-bin/download.cgi?ID=$file">"
+$file"})
#"/archive/".$file},$file)
);
}
print $list->end_html;
this script calls a cgi script call "download.cgi"
can I do that? and can you take a look at the code for errors
thanks