in reply to sorting hash keys
Thanks for your code but I can't get it to work.
foreach my $key (sort keys { $a <=> $b } %results) { print MAIL "$key) $results{$key}\n"; } [download]
foreach my $key (sort { $a <=> $b } keys %results) { print "$key) $results{$key}\n"; } [download]