in reply to Re: selcting a specific file
in thread selcting a specific file
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
|
|---|