hhoffman has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to take the mode of stat($filename)[2] and convert it to "normal" Unix file permissions.
Something like:
$mode = stat($filename)[2]; $unixmode = $mode ?some magic here?
Right now I can only print it (as per the example). Any help would be greatly appreciated.
Thanks,
Harry
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: converting stat() $mode to unix file permissions
by BrowserUk (Patriarch) on Jan 25, 2004 at 16:08 UTC | |
by duff (Parson) on Jan 25, 2004 at 17:00 UTC | |
by knowmad (Monk) on Mar 30, 2004 at 19:14 UTC | |
|
Re: converting stat() $mode to unix file permissions
by Zaxo (Archbishop) on Jan 25, 2004 at 19:49 UTC |