in reply to Re^2: Stat and file size
in thread Stat and file size

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.