in reply to perl filenames and square brackets
you could do:$dir .= '*'; my @list = glob($dir);
So that you're actually looking at the file contents, directly, rather than relying on globbing.opendir(DIR, $dir) or die $!; my @list = readdir(DIR) or die $!; closedir(DIR) or die $!;
------------ :Wq Not an editor command: Wq
|
|---|