<?xml version="1.0" encoding="windows-1252"?>
<node id="80015" title="Re: &quot;Junkyard&quot; Puzzle: Average of Numbers" created="2001-05-13 08:22:01" updated="2005-08-12 10:43:55">
<type id="11">
note</type>
<author id="76345">
DrZaius</author>
<data>
<field name="doctext">
Here is my attempt:
&lt;p&gt;
&lt;code&gt;
sub avg {
    return eval '(' . join('+', @{$_[0]}) . ')/' . scalar(@{$_[0]});
}
&lt;/code&gt;
&lt;p&gt;
Works pretty good over all :)
</field>
<field name="root_node">
79981</field>
<field name="parent_node">
79981</field>
</data>
</node>
