this:
my @nonempty_files = grep { ! -z $_ } @files;
looks not very trustworthy ;-). This might be wrong. Compare some test schenarios with this approach:
... my @nonempty_files = grep -e && !-z, @files; ...
(especially for non-accessible and non-existent files.)
Regards
mwa
In reply to Re^2: selcting a specific file
by mwah
in thread selcting a specific file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |