in reply to Adjacent Looping
my %hash = qw (J K L M N O); print qq{$_ => $hash{$_}\n} for sort keys %hash; [download]