Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Sort a two-dimensional array?

by dempa (Friar)
on Dec 20, 2002 at 22:14 UTC ( [id://221524]=note: print w/replies, xml ) Need Help??


in reply to Sort a two-dimensional array?

In your sort, $a and $b are references to arrays. To access the first row (row 0) you need to dereference the arrays first. Change $a and $b to ${$a}[0] and ${$b}[0] in your sort routine.

-- 
dempa

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found