in reply to sort csv file on "date" column

This is easy. You use Text::CSV to parse the CSV into hashes and then look at perlfaq4, at How do I sort a hash (optionally by value instead of key)?.