in reply to Sorting - lower to upper
Will give youmy %hash = qw/John 1 Bob 1 xavier 1 alice 1/; my @keys = map { tr/a-zA-Z/A-Za-z/; $_ } sort map { tr/a-zA-Z/A-Za-z/; $_ } keys %hash; print "@keys\n";
alice xavier Bob John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re^2: Sorting - lower to upper
by merlyn (Sage) on Jul 15, 2004 at 17:04 UTC | |
by orderthruchaos (Scribe) on Jul 15, 2004 at 17:23 UTC | |
by orderthruchaos (Scribe) on Jul 15, 2004 at 17:13 UTC |