For a different way of doing this, have a look at the file test operators in perlfunc.use Fcntl ':mode'; print "It's a directory!" if S_IFDIR( (stat($file))[2]);
CU
Robartes-
In reply to Re: How to determine a file's type via stat()
by robartes
in thread How to determine a file's type via stat()
by draconis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |