print "# File is located at: $myAbsPathToFile\n" if (-e $myAbsPathToFile); if (-s $myAbsPathToFile) { print "Good to go\n"; } else { print "# File $myAbsPathToFile is empty or missing: $!. Cannot continue!\n"; exit; }