edit: %hash{$_} -> $hash{$_}my @keys = sort keys %hash; # adapt to your needs here. for (@keys) { print "$_ => $hash{$_}\n"; }
edit2: This seems to me reasonably efficient:
my @keys = map { tr/a-zA-Z/A-Za-z/; $_ } sort map { tr/a-zA-Z/A-Za-z/; + $_ } keys %hash;
In reply to Re: Sorting - lower to upper
by Joost
in thread Sorting - lower to upper
by joule
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |