to check if it's actually a file (that exists), as the -e may also return true on a directory.if(-f "/bin/do/foo/$targetFile") { print "is there!\n"; } else { print "someone stoled it...\n"; }
In reply to Re: Re: checking for a file
by Massyn
in thread checking for a file
by splitOnce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |