in reply to File Check, Not.

if (-e $file) { # do something (it exists) } else { # do something else (it doesn't exist) }

See -X

update: clearly marked that this deals with it existing.