Here's one way to use it:
use strict; use warnings; my $dir = './'; my @nonZeroLengthFiles = grep -s, <$dir*>; print "$_\n" for @nonZeroLengthFiles;
This will print a list of all zero-length files in $dir.
In reply to Re^3: Stat and file size
by Kenosis
in thread Stat and file size
by Ormus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |