Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Testing Hash with empty value in HoH

by monkey_boy (Priest)
on Jun 15, 2005 at 10:16 UTC ( #466855=note: print w/replies, xml ) Need Help??


in reply to Testing Hash with empty value in HoH

In your data structure change:
'pk2' => {},

to:
'pk2' => undef,


or
if( $hoh->{$k} )
to:
if( keys %{$hoh->{$k}} )



This is not a Signature...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://466855]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-10-22 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?