<?xml version="1.0" encoding="windows-1252"?>
<node id="1015424" title="Re: Array vs. Hash for sparsely integer-indexed data" created="2013-01-25 17:49:30" updated="2013-01-25 17:49:30">
<type id="11">
note</type>
<author id="757127">
tobyink</author>
<data>
<field name="doctext">
&lt;p&gt;You could tie an array to a hashref for storage. This would be lovely in terms of memory usage, but not especially performant.&lt;/p&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-757127"&gt;
&lt;small&gt;&lt;small&gt;&lt;tt&gt;package Cow { use Moo; has name =&gt; (is =&gt; 'lazy', default =&gt; sub { 'Mooington' }) } say Cow-&gt;new-&gt;name&lt;/tt&gt;&lt;/small&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1015388</field>
<field name="parent_node">
1015388</field>
</data>
</node>
