use strict; use warnings; for my $file (qw/bar.txt barwithdata.txt/) { next unless -s $file > 114; print "file $file has data\n"; }