I'd hardly consider one grep and one map to be "excessive grepping & mapping" nor something that one would need to "combat".
However, should you prefer the style you've posted, "-f $_" suffers from the problem already pointed out four times in this thread.
You could employ excessive usage of "$dir/$_", though. :-)
-- Ken
In reply to Re^3: cant open files from a directory
by kcott
in thread cant open files from a directory
by garny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |