in reply to Re: Need help looping through hash
in thread Need help looping through HoH

Lyle, here is a Dump with \%hash
$VAR1 = { 'summary' => { 'allotments' => 679 }, 'prefix' => { '32 ' => 425, '45 ' => 5, '41 ' => 2, '46 ' => 5, '44 ' => 1, '47 ' => 9, '43 ' => 1, '27 ' => 1, '48 ' => 212, '22 ' => 14, '29 ' => 2, '40 ' => 2 } };
What I am trying to do is jump into the HoH to the keys under "prefix" and print their corresponding values. (i.e. that "32" = "425", "45" = 5...etc). Can't this be done in a single loop? Something like
foreach my $key (keys $%hash->{'prefix'})