<?xml version="1.0" encoding="windows-1252"?>
<node id="1005097" title="Re^2: PERL chmod inconsistent with the LINUX equivalent" created="2012-11-22 05:12:18" updated="2012-11-22 05:12:18">
<type id="11">
note</type>
<author id="27571">
ColonelPanic</author>
<data>
<field name="doctext">
&lt;p&gt;I disagree.&lt;/p&gt;
&lt;p&gt;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 &lt;code&gt;chmod()&lt;/code&gt; documentation, and might not be clear if you don't already know it.&lt;/p&gt;
&lt;code&gt;
print 0777 . " (octal)\n";
print 777 . " (decimal)\n";
&lt;/code&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-27571"&gt;
&lt;br&gt;&lt;br&gt;When's the last time you used duct tape on a duct?  --Larry Wall
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1005083</field>
<field name="parent_node">
1005088</field>
</data>
</node>
