There's more than one way to do things | |
PerlMonks |
Re: Sorting a CSV fileby rsiedl (Friar) |
on Jul 17, 2006 at 03:39 UTC ( [id://561645]=note: print w/replies, xml ) | Need Help?? |
Hi, You might want to look at Text::CSV for parsing your csv file. It could make things a bit simpler. And then, as McDarren says, Date::Calc would be quite helpful for your sort. Perhaps convert it to a unixtime format and then perform the sort. A sort sub to get the job done:
Cheers.
In Section
Seekers of Perl Wisdom
|
|