http://www.perlmonks.org?node_id=1005097


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";


When's the last time you used duct tape on a duct? --Larry Wall