in reply to Seeing if a hash has one arbitrary key
for my $c ( keys %h ) { my @attr = keys %{$h{$c}}; if ( @attr == 1 and $h{$c}{$attr[0]} == 1 ) { print "$c has a $attr[0]\n"; } . . . [download]
jdporterThe 6th Rule of Perl Club is -- There is no Rule #6.