On 11/09/2006 07:47 AM, Zielfelder, Robert wrote:
Greetings:
I have a sorting problem I need to solve but I'm not sure how to go
about it. I have an application that dumps a file with a format like
this:
19JAN2006.1503
03JAN2006.1647
19DEC2004.0530
24MAR2003.1115
As you may have guessed, these are dates and times - timestamps for log
files from an application. I want to be able to sort this list from
earliest to latest date. I'm able to parse these into specific
categories (Year, Month, Day, Time) and can sort on any one category,
but I don't know how to sort by multiple categories. Anyone have any
ideas?
Thanks,
Rz
Using the Date::Parse module, this becomes a one-line program (not
counting initialization and print-out).
http://www.cpan.org/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>