Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: sort on values in an array of hashes

by ambs (Pilgrim)
on Apr 19, 2005 at 09:09 UTC ( #449153=note: print w/replies, xml ) Need Help??


in reply to sort on values in an array of hashes

Not sure if what you want is this...
@array = sort { $a->{name} cmp $b->{name}} @found;
Good luck

Alberto Simões

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2020-04-05 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (36 votes). Check out past polls.

    Notices?