Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: two order sort

by choroba (Chancellor)
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} }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

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 musing on the Monastery: (4)
As of 2016-07-24 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (221 votes). Check out past polls.