<?xml version="1.0" encoding="windows-1252"?>
<node id="26338" title="RE: (Slice 'em and Dice 'em) RE: Arrays are not lists" created="2000-08-05 15:20:49" updated="2005-08-15 00:19:01">
<type id="11">
note</type>
<author id="26179">
tilly</author>
<data>
<field name="doctext">
D'oh.  Thanks for pointing out my obvious typo.  That is
what I get for posting late at night without testing my
code.&lt;p&gt;

What I consider the most important point here is not that
lists and arrays differ.  Rather it is that there are a lot
of ways in which scalar and array context can have
unexpected behaviour,
and there are a lot of hidden mines awaiting the person who
does not think about which is which.&lt;P&gt;

Being aware of the context and making a point of
consistently exploring it will teach you a lot of nuances
of code.&lt;P&gt;

BTW I am no longer bitten by the difference between lists
and arrays.  There was a period when I realized that Perl
really is list-oriented and I tried to make my code be
list-oriented and I got bitten during the transitition...</field>
<field name="root_node">
26319</field>
<field name="parent_node">
26326</field>
</data>
</node>
