<?xml version="1.0" encoding="windows-1252"?>
<node id="1005100" title="Re^3: PERL chmod inconsistent with the LINUX equivalent" created="2012-11-22 05:23:17" updated="2012-11-22 05:23:17">
<type id="11">
note</type>
<author id="324763">
marto</author>
<data>
<field name="doctext">
&lt;p&gt;IMHO the [doc://chmod] documenation is fairly comprehensive.&lt;/p&gt;
&lt;p&gt;&lt;i&gt;"... The first element of the list must be the numeric mode, which should probably be an octal number, and which definitely should not be a string of octal digits: 0644 is okay, but "0644" is not. Returns the number of files successfully changed. See also [doc://oct] if all you have is a string."&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Note the link to [doc://oct], and the fact that the examples clearly show the leading zero. Then follows examples explaining the outcome of several ways of using [doc://chmod], including the outcome of using it &lt;strike&gt;without the leading zero&lt;/strike&gt; incorrectly. If you feel this isn't clear enough feel free to contribute to the documentation.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; Strike out mistake.&lt;/p&gt;</field>
<field name="root_node">
1005083</field>
<field name="parent_node">
1005097</field>
</data>
</node>
