Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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
Domain Nodelet?
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 chilling in the Monastery: (4)
As of 2022-10-06 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?