Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Sorting an array of records

by BaldPenguin (Friar)
on Aug 30, 2005 at 18:21 UTC ( [id://487891]=note: print w/replies, xml ) Need Help??


in reply to Sorting an array of records

I was going to post the same as above, but now I won't. However, I was wondering why you wrote a subroutine for the sort as opposed to
my @sort2 = sort { $a->{'salary'} <=> $b->{'salary'} } @workers;

Don
WHITEPAGES.COM | INC
Everything I've learned in life can be summed up in a small perl script!

Log In?
Username:
Password:

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

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

    No recent polls found