perlfunc - see the -X pseudo-functions.print "nothing\n" if not -e $filename; print "directory\n" if -d $filename; print "file\n" if -f $filename;
--
[ e d @ h a l l e y . c c ]
In reply to Re: Determine if object is file or directory?
by halley
in thread Determine if object is file or directory?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |