You could always just use Archive::Tar and get the mode directly without parsing anything.
In reply to Re: Convert ls listing of -rwxr-xr-x into mode for stat
by Fletch
in thread Convert ls listing of -rwxr-xr-x into mode for stat
by hackdaddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |