@files = grep { -s and -f} @files;
I personally believe that this is fine, but to avoid a double stat one would better
@files = grep { -s and -f _} @files;
Of course it would be nice to also have chained -X's, and IIRC 5.10 has them.
In reply to Re^2: selcting a specific file
by blazar
in thread selcting a specific file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |