in reply to Printing hashes of arrays

Printing the hash values could be simplified thus:
my %hash = ( A => [1,2], B => [4,6]); while (my ($k,$v)=each %hash){ print qq ($k: @$v\n) } -- Output--- A: 1 2 B: 4 6
UPDATE:If you want it sorted, here is the code:
my %hash = ( S => [1,2], B => [4,6],); print qq($_: @{$hash{$_}}\n) for sort keys %hash; --output--(Notice, it IS sorted)-- B: 4 6 S: 1 2
"When you are faced with a dilemma, might as well make dilemmanade. "