Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How can I get these to print in reverse order by date so the newest date is on top? It may be confusing, but I have a whole mess of records in my SDBM that are dated, I need to bring them back out in a new order.
The tricker part would be after seperating by date, how can I make it prints a new table for each month? For example:
Any help would be very much appreciated.foreach (reverse sort keys %list) { <table> <tr><td>1.1.04</td><td>first record</td></tr> <tr><td>1.21.04</td><td>next record, same month</td></tr> </table> <table> <tr><td>2.13.04</td><td>New table becuse it's a new month</td></tr> </table> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting by date
by Roger (Parson) on Jan 06, 2004 at 01:02 UTC | |
by Anonymous Monk on Jan 06, 2004 at 01:12 UTC | |
by Roger (Parson) on Jan 06, 2004 at 01:19 UTC | |
by sulfericacid (Deacon) on Jan 06, 2004 at 10:40 UTC | |
by Roger (Parson) on Jan 06, 2004 at 12:39 UTC | |
by Anonymous Monk on Jan 06, 2004 at 01:53 UTC | |
by Roger (Parson) on Jan 06, 2004 at 02:00 UTC | |
by Anonymous Monk on Jan 07, 2004 at 05:48 UTC | |
by Roger (Parson) on Jan 07, 2004 at 06:26 UTC | |
|
Re: Sorting by date
by runrig (Abbot) on Jan 06, 2004 at 00:54 UTC | |
|
Re: Sorting by date
by pzbagel (Chaplain) on Jan 06, 2004 at 00:54 UTC | |
by Anonymous Monk on Jan 06, 2004 at 11:51 UTC |