Perhaps the following -size File Test Operator and grep on a glob will work for you:
my @nonZeroSizeFiles = grep -s, <*>;
And in case you'd like to find zero-size files
my @zeroSizeFiles = grep !-s, <*>;
Hope this helps!
In reply to Re: Stat and file size
by Kenosis
in thread Stat and file size
by Ormus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |