<?xml version="1.0" encoding="windows-1252"?>
<node id="154768" title="Re: Check for existance in a hash of hashes" created="2002-03-27 14:03:28" updated="2005-07-21 01:31:11">
<type id="11">
note</type>
<author id="5842">
PrakashK</author>
<data>
<field name="doctext">
&lt;blockquote&gt;
&lt;code&gt;
sub print_data
{
    my %hoh = %$skip_users;    
    next if ((exists $hoh{$user}) &amp;&amp; (exists $hoh{$user}{$command}));
}
&lt;/code&gt;
&lt;/blockquote&gt;

I wonder if the &lt;code&gt;next if ...&lt;/code&gt; part is a typo. This should throw up an error unless print_data is called inside a loop.
&lt;p/&gt;
Do you mean:
&lt;code&gt;
  print $hoh{$user}{$command}
    if ((exists $hoh{$user}) &amp;&amp; (exists $hoh{$user}{$command}));
&lt;/code&gt;
&lt;p/&gt;
/prakash
</field>
<field name="root_node">
154744</field>
<field name="parent_node">
154744</field>
</data>
</node>
