my $file = './thefile.sh'; print "File exists and seems to contain data" if (-e $file && -f $file && (-s $file) > 0);