in reply to sort a hash with split values
my @sorted_keys = map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { [ $_, (split/:/,$hash{$_})[1] ] } keys $hash;
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sort a hash with split values
by Anonymous Monk on Jun 21, 2006 at 18:14 UTC | |
| |
|
Re^2: sort a hash with split values
by derby (Abbot) on Jun 21, 2006 at 19:21 UTC |