Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Sorting a CSV fileby McDarren (Abbot) |
on Jul 17, 2006 at 02:59 UTC ( [id://561639]=note: print w/replies, xml ) | Need Help?? |
"4) sort the higest one " Sort the highest one what? Do you mean:
You need to clarify. By the way, the "sorting by date" that you've implemented does not work. If you enable warnings, you will see the following output: You get that because you are tring to do a numeric sort on "stringified" data. To properly sort by date, you'll need to first convert the strings into something that sort can make sense of. For example, a unix timestamp. Something like Date::Manip or Date::Calc will be useful for that. Cheers,
In Section
Seekers of Perl Wisdom
|
|