http://qs321.pair.com?node_id=187099


in reply to Re: checking for a file
in thread checking for a file

I'd rather go with
if(-f "/bin/do/foo/$targetFile") { print "is there!\n"; } else { print "someone stoled it...\n"; }
to check if it's actually a file (that exists), as the -e may also return true on a directory.