in reply to Re^2: sort hash after value from hash in hash
in thread sort hash after value from hash in hash
$hash = { 1 => { key1 => string1, key2 => string2 } 2 => { key1 => string1, key2 => string2 } }
is very badly chosen, since the values for each key of the sub-hashes are identical. What do you expect sort to do for you? ,-) </nit>
--shmem
_($_=" "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^4: sort hash after value from hash in hash
by ocs (Monk) on Nov 24, 2006 at 15:09 UTC | |
by Hofmator (Curate) on Nov 24, 2006 at 15:13 UTC | |
by ocs (Monk) on Nov 24, 2006 at 15:26 UTC |