in reply to Parsing output from the CSV file
Rule 1: don't parse CSV yourself
Use Text::CSV and/or Text::CSV_XS instead.