Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 exploiting the Monastery: (1)
As of 2021-10-19 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (76 votes). Check out past polls.

    Notices?