<?xml version="1.0" encoding="windows-1252"?>
<node id="84481" title="Re: Re: (Efficiency Golf) Triangular numbers" created="2001-05-31 07:28:29" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="83485">
blakem</author>
<data>
<field name="doctext">
I'm familiar with assigning to slices of a hash, and its
use in this line:&lt;P&gt;
&lt;CODE&gt;@seen {$t, $h, $r, $e} = ();&lt;/CODE&gt;&lt;P&gt;
was very clever.  However, why did you use slices
in these lines?&lt;P&gt;
&lt;CODE&gt;
@seen {$n,} = ();
....
@seen {$o,} = ();
&lt;/CODE&gt;
Aren't they equivalent to:&lt;BR&gt;
&lt;CODE&gt;
$seen{$n} = undef;
$seen{$o} = undef;
&lt;/CODE&gt;
Or even just:&lt;BR&gt;
&lt;CODE&gt;
@seen {$n} = ();  # note the lack of comma after $n
....
@seen {$o} = ();
&lt;/CODE&gt;
I guess its that trailing comma that looks odd to me.&lt;P&gt;

-Blake&lt;BR&gt;
p.s. props on the @HIGH and @LOW generation... very sneaky!
</field>
<field name="root_node">
84175</field>
<field name="parent_node">
84259</field>
</data>
</node>
