# Use "-e" to test is the file exists... MY_FILE="/home/my_filename.txt" if ( -e $MY_FILE ) { print "The File Exists\n\n"; } else { print "The File DOES NOT Exists\n\n"; }