in reply to Check for existance in a hash of hashes
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
|
|---|