Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: two order sort

by choroba (Cardinal)
on Mar 05, 2013 at 00:17 UTC ( [id://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} }
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found