<?xml version="1.0" encoding="windows-1252"?>
<node id="1014147" title="Re^2: variable declaration question" created="2013-01-18 17:39:26" updated="2013-01-18 17:39:26">
<type id="11">
note</type>
<author id="333489">
muba</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;In the above example I have an array on the LHS and an array on the RHS. This is equivalent to: &lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;Strictly speaking... this not true. You have a &lt;i&gt;list&lt;/i&gt; on the LHS, as per [http://perldoc.perl.org/perlfaq4.html#What-is-the-difference-between-a-list-and-an-array?|perlfaq4: What is the difference between a list and an array]:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;i&gt;A list is a fixed collection of scalars. An array is a variable that holds a variable collection of scalars. An array can supply its collection for list operations, so list operations also work on arrays&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;&lt;i&gt;Array operations, which change the scalars, rearranges them, or adds or subtracts some scalars, only work on arrays. These can't work on a list, which is fixed. Array operations include &lt;c&gt;shift&lt;/c&gt;, &lt;c&gt;unshift&lt;/c&gt;, &lt;c&gt;push&lt;/c&gt;, &lt;c&gt;pop&lt;/c&gt;, and &lt;c&gt;splice&lt;/c&gt;.&lt;/i&gt;&lt;/p&gt;
&lt;/blockquote&gt;
</field>
<field name="root_node">
1014122</field>
<field name="parent_node">
1014134</field>
</data>
</node>
