I wonder if the next if ... part is a typo. This should throw up an error unless print_data is called inside a loop.sub print_data { my %hoh = %$skip_users; next if ((exists $hoh{$user}) && (exists $hoh{$user}{$command})); }
Do you mean:
print $hoh{$user}{$command} if ((exists $hoh{$user}) && (exists $hoh{$user}{$command}));
/prakash
In reply to Re: Check for existance in a hash of hashes
by PrakashK
in thread Check for existance in a hash of hashes
by Perl_User
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |