I see that's been answered by ++choroba.
The "map { "$dir/$_" }", in my suggested solution, provided "grep { -f }" with the pathname (as opposed to just a filename).
I might also point out that while '! -d' will be true for the '-f' files, it may also be true for any '-l', '-S', '-b' or '-c' files.
-- Ken
In reply to Re^3: Scanning a directory's files for readability
by kcott
in thread Scanning a directory's files for readability
by Phoebus2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |