for my $entry (@files) { # @files contains the files I want to look at next if -z $entry; my $size = -s $entry; # more code