Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Stupid, yet simple, sort question

by broquaint (Abbot)
on Oct 24, 2001 at 20:38 UTC ( [id://121176]=note: print w/replies, xml ) Need Help??


in reply to Stupid, yet simple, sort question

This ought do the trick -
foreach $loc (reverse sort { int(${$a}{online}) <=> int(${$b}{online}) + } @locations)

HTH

broquaint

Update: And if I look the at code a little closer, it may even work (dereferenced the info we want, thanks davorg)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-28 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found