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.
In reply to Re: File Check, Not.
by jhourcle
in thread File Check, Not.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |