And if files are all that are needed (no directories), why not filter out all directories, not just those 2 special ones?
my @files = grep {-f "$dir/$_"} readdir(DIR);
where $dir is the directory path which DIR points to.
In reply to Re^2: testing files for valid content
by toolic
in thread testing files for valid content
by grashoper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |