<?xml version="1.0" encoding="windows-1252"?>
<node id="632818" title="Re: Problem with deleting a hash key" created="2007-08-15 14:15:03" updated="2007-08-15 10:15:03">
<type id="11">
note</type>
<author id="61104">
cLive ;-)</author>
<data>
<field name="doctext">
&lt;p&gt;Um. Well. There's quite a few stumbling blocks here:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;I'd change the DBI connect to throw an error if it fails rather than use a conditional after.
  &lt;li&gt;explain what %list is, since you don't include the declaration code here.
  &lt;li&gt;same for getRecord()
  &lt;li&gt;remove fluff code - the  "if (scalar(@dbrec) &gt; 6 )" has nothing to do with whether the key is deleted. heh, maybe that's the bug though and the delete line should be on the other side of the closing brace?
  &lt;li&gt;in this context, the "if (@dbrec)" conditional is pointless too
&lt;/ul&gt;
&lt;p&gt;Maybe then we'll have a chance at helping you...&lt;/p&gt;</field>
<field name="root_node">
632811</field>
<field name="parent_node">
632811</field>
</data>
</node>
