%HoH = (
Group1=> {
member1=> "fred",
member2=> "barney",
},
Group2 => {
member1 => "george",
member2 => "jane",
},
);
如何访问HoH的第二个值或第二个键 我想访问每个组键的member2及其关联值。我不知道我的键名,我只知道它是第二个键
foreach $key (keys %HoH){
foreach $value (keys %{$HoH{$key}}){
print $key."\n";
}
}