I just want to store those 4 numbers in a scalar.Use sprintf:
$mode = sprintf '%04o', (stat $file)[2] & 07777; print "Permissions are $mode\n";
In reply to Re: stat and permissions
by toolic
in thread stat and permissions
by Stoomy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |