12345
$dir = 'datas';opendir DIR, $dir or die "Can't open $dir: $!";my @files = grep ! /\.html$/, readdir DIR; closedir DIR;