Did you put a print "$file\n" before the "next unless" to see if the file even gets returned by readdir?
Also, unless you're using autodie, you should check the status of open and opendir.
In reply to Re: Regular expression to list all files of type in folder
by runrig
in thread Regular expression to list all files of type in folder
by Phinix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |