in reply to File Check, Not.
if (-e $file) { # do something (it exists) } else { # do something else (it doesn't exist) } [download]
See -X
update: clearly marked that this deals with it existing.