Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Array of Arrays Sorting

by ccn (Vicar)
on Dec 15, 2008 at 06:38 UTC ( [id://730356]=note: print w/replies, xml ) Need Help??


in reply to Array of Arrays Sorting

my @sorted = sort {$a->[1] <=> $b->[1]} @$array;

  • perldoc -f sort
  • perldoc perlfaq4 (How-do-I-sort-an-array-by-(anything))

Replies are listed 'Best First'.
Re^2: Array of Arrays Sorting
by ysth (Canon) on Dec 15, 2008 at 06:56 UTC
Re^2: Array of Arrays Sorting
by imrags (Monk) on Dec 15, 2008 at 06:55 UTC
    Hi
    When I print sorted, I get this output
    ARRAY(0x19ff590)ARRAY(0x19ff650)ARRAY(0x1a00040)ARRAY(0x19ff860)ARRAY(0x19ff9b0)
    Raghu

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found