in reply to Handling CSV files

Take a look at Data::Table, and the Data::Table Cookbook.

Here are a few nodes, where I have used Data::Table: