in reply to Hash sorting (by value) woes
map { print "$etcpw->{$_}\n"; } sort { [ split /:/, $etcpw->{$a} ]->[2] <=> [ split /:/,$etcpw->{$b} + ]->[2] } keys %{$etcpw};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash sorting (by value) woes
by dragonchild (Archbishop) on Feb 24, 2005 at 17:07 UTC |