in reply to Need advices, displaying files in directory with CGI..
my @files_exist = reverse sort grep { defined } map { my $f = $_; $f =~ s/^(\d+)\.html$/$1/ ? $f : undef } readdir DIRE; [download]