m.y has asked for the wisdom of the Perl Monks concerning the following question:
where CONSTANT is a different constant in each of the 3 functions. And the other two have a sort like this:for my $key (sort { $ref->{$b}->[CONSTANT] <=> $ref->{$a}->[CONSTANT] +} keys %$ref)
I could make a generic function if someone could help me figure out how to do the sort in it..for my $key (sort { $ref->{$b} <=> $ref->{$a} } keys %$ref)
thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting question
by apl (Monsignor) on Feb 12, 2008 at 18:43 UTC | |
|
Re: Sorting question
by davido (Cardinal) on Feb 12, 2008 at 18:39 UTC | |
|
Re: Sorting question
by kyle (Abbot) on Feb 12, 2008 at 18:48 UTC | |
by lodin (Hermit) on Feb 13, 2008 at 00:53 UTC | |
|
Re: Sorting question
by thundergnat (Deacon) on Feb 12, 2008 at 19:53 UTC |