in reply to Re^2: printing hashes
in thread printing hashes

i absolutely agree with you, but propose to sort the hash keys prior to mapping the result:
print join(', ', map { $_ . _ => ' . $hash{$_} } sort { $a cmp $b } ke +ys(%hash), "\n";


@ anonymus monk:
the sort block is what sort() performs automatically, so it's just a placeholder for any other sorting routine.
perldoc -f sort will give you some examples and advices.

language is a virus from outer space.