in reply to How to determine a file's type via stat()
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-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to determine a file's type via stat()
by draconis (Scribe) on May 09, 2003 at 17:24 UTC | |
by robartes (Priest) on May 09, 2003 at 17:29 UTC | |
by Limbic~Region (Chancellor) on May 09, 2003 at 17:30 UTC |