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";
In reply to Re^2: PERL chmod inconsistent with the LINUX equivalent
by ColonelPanic
in thread PERL chmod inconsistent with the LINUX equivalent
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |