Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
to display the number I've assigned to each person, in alphabetical order. But how do I output in numberical order? Such as ->foreach my $person (sort keys %values) { print $person,"\t",$values{$person},br; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hashes sorted by value, but displaying both keys and values
by hardburn (Abbot) on Dec 31, 2003 at 21:37 UTC | |
|
Re: hashes sorted by value, but displaying both keys and values
by mpeppler (Vicar) on Dec 31, 2003 at 21:38 UTC | |
|
Re: hashes sorted by value, but displaying both keys and values
by chromatic (Archbishop) on Dec 31, 2003 at 21:38 UTC | |
by Anonymous Monk on Dec 31, 2003 at 22:30 UTC | |
by chromatic (Archbishop) on Dec 31, 2003 at 22:50 UTC |