Hi,
I'm trying to create a list of href on html pages stored in a directory,but I can't loop trough the html files,it doesn't work..
My syntax is surely not good...when I doesn't put the foreach loop the code works :
my $rep='c:\scripts_test';
opendir(DIR,$rep) or die "Unable to open $rep: $!";
@liste = sort(grep(/ipl$/, readdir(DIR)));
readdir(DIR);
closedir(DIR);
print <<EOF;
<?xml version="1.0" encoding='UTF-8'?>
EOF
foreach my $test(
@liste){
print <<EOF;
<substitution>
<option label=\"$test\" />
</substitution>
EOF
}
Plz help
Thx