<?xml version="1.0" encoding="windows-1252"?>
<node id="780254" title="Re: Common Causes for &quot;Modification of a read-only value attempted&quot;" created="2009-07-15 06:59:54" updated="2009-07-15 06:59:54">
<type id="11">
note</type>
<author id="375144">
techcode</author>
<data>
<field name="doctext">
I've been trying to figure what is going on, as I was getting this error - but wasn't modifying anything that's static.
&lt;p&gt;
Turns out - in an array assignment I missed the comma , between two undef's. Such as:
&lt;code&gt;
my @array = ('something', 'whatever', undef, undef
             undef, 'foo', 'bar', undef);
&lt;/code&gt;


&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-375144"&gt;
&lt;hr&gt;
Have you tried freelancing/outsourcing? Check out &lt;a href="http://tinyurl.com/techcode-sl"&gt;Scriptlance&lt;/a&gt; - I work there since 2003. For more info about Scriptlance and freelancing in general check out &lt;a href="http://www.perlmonks.org/?node_id=375144"&gt;my home node&lt;/a&gt;.
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
570712</field>
<field name="parent_node">
570712</field>
</data>
</node>
