Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Edward Wijaya
October 2, 2004, 7:35 pm
rate this thread
I am a newbie in using Perl Module
especially it's OO method.
I have a problem using Tie::IxHash.
My question is how can I sort the hash
by value in desending order.
$t->SortByValue; # ascending
I tried this to get the descending order, but doesn't seem to work:
Please kindly advice, how can I go about it.
This is the hash, by the way:
my %hash =(
'1-1' => 3,
'2-3' => 2,
'2-2' => 1,
'1-2' => 6,
'1-3' => 3
- » How to tell CPAN-testers a module is just for a specific platform?
- — Previous thread in » PERL Modules Announcements