http://www.perlmonks.org?node_id=466855


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...