Why doesn't a trick like this work then?It doesn't work because "leading zero means octal" applies only to numbers, not strings of numeric digits.$chmod='0644'; chmod $chmod+0, $file;
Try this: print 0644, " != ", '0644' + 0, "\n"; This is all described in the on-line doc, in perldata.
In reply to Re: Re: Re: chmod and oct
by dws
in thread chmod and oct
by mce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |