Perl: the Markov chain saw | |
PerlMonks |
Re: Sorting rows in a text fileby thinker (Parson) |
on Nov 09, 2001 at 19:18 UTC ( [id://124380]=note: print w/replies, xml ) | Need Help?? |
Hi saihuj, This code is by no means robust, but it should work if the data files are in _exactly_ the form you state. Also, I am not sure whether 15/19/2001 means the 15th day of the 19th month, or vice versa. Whatever, that month is out of scale in my planet :-). So I assume dd/mm/yy Oh, and it doesn't check the integrity of dates :-). Did I mention that. Still, I hope the sort code can help you become familiar with how things work. cheers thinker
In Section
Seekers of Perl Wisdom
|
|