in reply to finding specific files

You can also use a regular expression. You were almost there with the code you had. Here's a slight rewrite:
my $mydir = 'Where/the/directory/is'; opendir (MYDIR, $mydir) or die "Could not opendir $mydir: $!\n"; my @numfiles = grep { /^\d{4}.*\.html$/} readdir MYDIR; closedir(MYDIR); print "<UL>\n"; for (@numfiles) { print qq! <LI><A HREF="$_">$_</A></LI>\n!; } print "</UL>\n";

Quick notes: