in reply to stat-mode; numeric definitions
Per the stat documentation, "not all fields are supported on all filesystem types", so you really need to consult the documentation for your OS and FS of choice for the appropriate definitions if the perldoc entry isn't meeting your needs.
Can't help you find such for Windows or the Mac, but for Unix(ish) environments the following may be good places to start...
If all you're really after is permissions, perhaps you should try the bitmasking technique in the docs or take a look at something like Stat::lsMode (alt.)?
use Stat::lsMode; $mode = (stat $some_file)[2]; # 33206 $perms = format_mode($mode); # -rw-rw-rw-
--k.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: stat-mode; numeric definitions
by S_Shrum (Pilgrim) on Jun 12, 2002 at 21:43 UTC |