Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a file that I need to find the permissions and file type for. However, I have a small problem with it. I do not see the permissions or type, just numbers. Here is the code:
$fileMode = (stat $dirItem)[2];
Here is a sample number I get back from a file: 33279
How do I convert the numbers into type and permissions? I am using Windows NT.
Thanks for any help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using stat
by jdporter (Paladin) on Feb 10, 2003 at 18:38 UTC | |
|
Re: using stat
by LD2 (Curate) on Feb 10, 2003 at 18:37 UTC |