Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Check for existance in a hash of hashes

by PrakashK (Pilgrim)
on Mar 27, 2002 at 19:03 UTC ( #154768=note: print w/replies, xml ) Need Help??

in reply to Check for existance in a hash of hashes

sub print_data { my %hoh = %$skip_users; next if ((exists $hoh{$user}) && (exists $hoh{$user}{$command})); }
I wonder if the next if ... part is a typo. This should throw up an error unless print_data is called inside a loop.

Do you mean:

print $hoh{$user}{$command} if ((exists $hoh{$user}) && (exists $hoh{$user}{$command}));


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://154768]
[davido]: Lol, in composing test code for Re: Stupid, yet simple, sort question I managed to fill up /tmp for a moment, causing bash to complain about "pmbash: cannot create temp file for here-document: No space left on device"

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2018-03-18 06:53 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (228 votes). Check out past polls.