if ( -e "path/to/file" ) { print "File exists, hooray!"; } else { print "I couldn't find the file. Hohum:("; }