%HoH = (
Group1=> {
member1=> "fred",
member2=> "barney",
},
Group2 => {
member1 => "george",
member2 => "jane",
},
);
How can I access second value or second key of HoH I want to access member2 of each group keys and their associated values.I don't know my key name , I just know it is second key
foreach $key (keys %HoH){
foreach $value (keys %{$HoH{$key}}){
print $key."\n";
}
}