Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: two order sort

by choroba (Abbot)
on Mar 05, 2013 at 00:17 UTC ( #1021726=note: print w/ replies, xml ) Need Help??


in reply to two order sort

$scan->{$b} returns an array reference. You are comparing references which is not what you want. Change the first part of sort to

$#{ $scan->{$b} } <=> $#{ $scan->{$a} }
or
@{ $scan->{$b} } <=> @{ $scan->{$a} }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: two order sort
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021726]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-08-01 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (25 votes), past polls