in reply to I Ordered My Keys With Existing Values!
my @order = sort { $hash{$a} <=> $hash{$b} } keys %hash;
Or you can try Tie-InsertOrderHash-0.01.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: I Ordered My Keys With Existing Values!
by diotalevi (Canon) on Jul 28, 2003 at 15:06 UTC | |
by hardburn (Abbot) on Jul 28, 2003 at 15:09 UTC | |
|
Re: Re: I Ordered My Keys With Existing Values!
by abitkin (Monk) on Jul 28, 2003 at 15:14 UTC | |
by cleverett (Friar) on Jul 28, 2003 at 17:10 UTC |