On Thu, 5 Aug 2004, Chris Mortimore wrote:

Gunnar Hjalmarsson wrote:
> Chris Mortimore wrote:
>> I want to sort an AoH.  Not each hash by its keys, but the array by
>> the value of one of the keys in each hash.
>
> The value of one of the keys? If you don't know *which* key in
> respective hash, this appears to be pretty tricky...

Of course I know _which_ key. Each hash has a key "date_tm", I want to sort all the hashes in the array by their date_tm value which is in the format: yyyymmdddhhmm.

Don't you think it might have been constructive to mention this the first time around?


Can you please give a fuller description of [a] what this data structure really looks like -- a Data::Dumper dump would be good -- and [b] how you want to rearrange the contents of this structure?


-- Chris Devers

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to