Use the filetest operators which are described in perldoc perlfunc. -f FH or -f "filename" returns true for a normal file. -d "filename" returns true for a directory. There are many others that return various pieces of information about the specified file.
| 90% of every Perl application is already written. ⇒ |
| dragonchild |
In reply to Re: directory or file?
by pfaut
in thread directory or file?
by rupesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |