That is a check for file existence, not a check as to whether you've been passed something intended to be treated as a filename. A filename may be the name of a file that does not (yet) exist.
In reply to Re^8: Best way to check if something is a file handle?
by tobyink
in thread Best way to check if something is a file handle?
by tobyink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |