in reply to hash loop print
%hash = map { $_ => $_ } (1..10); print qq{\$hash{$_} => $_\n} for sort {$a <=> $b} keys %hash; [download]
Cheers, KM