----- Original Message -----
From: "Moreno, Javier" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 07, 2006 9:14 PM
Subject: Sorting a 2D hash
All,
I have a two-dimension hash which I use to print out information I
retrieved from a DB. I am using a unique identifier as the key to avoid
duplicates. However, I need to sort the entire hash by date, which is a
key on the second level of the hash. How can I sort this? Example:
### CODE
foreach my $key (keys %results) {
If the key names can be sorted as you want use
foreach my $key (sort keys %results) {
Petr Vileta, Czech republic
(My server reject all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs