stefan k has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that I want to convert a typical permissions-string (from ls -l) to it's octal representation. For simplicity we should consider the first char (usually 'd' or 'l' or '-') stripped.
converts torw-rw----
Please enlighten me with your knowledge.0660
| Regards... | Stefan |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting Permissionstring to Octal
by jeroenes (Priest) on May 16, 2001 at 13:49 UTC | |
by stefan k (Curate) on May 16, 2001 at 13:59 UTC | |
|
Re: Converting Permissionstring to Octal
by blue_cowdawg (Monsignor) on May 16, 2001 at 17:52 UTC | |
|
(tye)Re: Converting Permissionstring to Octal
by tye (Sage) on May 16, 2001 at 22:45 UTC |