<?xml version="1.0" encoding="windows-1252"?>
<node id="351769" title="Re: Hash table issue" created="2004-05-08 17:36:50" updated="2004-09-03 09:33:59">
<type id="11">
note</type>
<author id="99151">
krusty</author>
<data>
<field name="doctext">
From the looks of your code, you have a hash %info, which contains only one key "EmpNum" and the value associated with that key is a reference to an anonymous array.  At no point in time do I see you populating the elements of your anonymous array, but instead I see you passing a reference to &lt;CODE&gt;$info{EmpNum}[$x]&lt;/CODE&gt; where $x is some index value you increment.&lt;BR&gt;&lt;BR&gt;
Is there even such an element &lt;CODE&gt;$info{EmpNum}[1]&lt;/CODE&gt;?&lt;BR&gt;&lt;BR&gt;
Nor do I see you creating any other keys to this hash &lt;CODE&gt;%info&lt;/CODE&gt; except for "EmpNum".  So I don't see what array you are iterating through when you do your foreach loop or what you are printing out.</field>
<field name="root_node">
351763</field>
<field name="parent_node">
351763</field>
</data>
</node>
