upaksh has asked for the wisdom of the Perl Monks concerning the following question:
hello monks, I need help with following code:
@Aname = [ { 200 => 'hello', name => 'akshay' }, { 100 => 'world', name => 'india' }, { 150 => 'great', name => 'ahm' } ]
i need to sort this so that I get the keys in order of 100, 150 and 200. Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sort in array of hash required
by Corion (Patriarch) on Nov 16, 2011 at 12:48 UTC | |
|
Re: sort in array of hash required
by raybies (Chaplain) on Nov 16, 2011 at 13:39 UTC | |
by reisinge (Hermit) on Nov 16, 2011 at 15:53 UTC | |
by johngg (Canon) on Nov 16, 2011 at 16:37 UTC | |
by AnomalousMonk (Archbishop) on Nov 16, 2011 at 17:04 UTC | |
|
Re: sort in array of hash required
by GrandFather (Saint) on Nov 16, 2011 at 19:52 UTC | |
by raybies (Chaplain) on Nov 16, 2011 at 20:23 UTC |