A few pointers:
How do you plan to use this? Hashes are inherently unsorted and, therefore, sorting them is useless. Sorting their data and using the output of the sort, however, is quite useful:
foreach my $key (sort keys %hash) { print "$key $hash{$key}\n"; }
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: SORT ASSOC ARRAY
by Ovid
in thread Sort assoc array
by rowhiteny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |