Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 pondering the Monastery: (12)
As of 2014-12-18 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (61 votes), past polls