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
In reply to Re: I Ordered My Keys With Existing Values!
by hardburn
in thread I Ordered My Keys With Existing Values!
by abitkin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |