in reply to Re: PERL chmod inconsistent with the LINUX equivalent
in thread PERL chmod inconsistent with the LINUX equivalent
I disagree.
The problem is that you need a leading zero in order for a number in Perl to be interpreted as octal. That isn't explicitly mentioned in the chmod() documentation, and might not be clear if you don't already know it.
print 0777 . " (octal)\n"; print 777 . " (decimal)\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: PERL chmod inconsistent with the LINUX equivalent
by marto (Cardinal) on Nov 22, 2012 at 10:23 UTC | |
by ColonelPanic (Friar) on Nov 22, 2012 at 10:30 UTC | |
by marto (Cardinal) on Nov 22, 2012 at 11:02 UTC |