if (-s $filename) { # The file is not empty }