There are three ways that immediately come to my mind:
- DBI::CSV - if you need SQL, etc for any reason (doesn't look like you will for what you're describing, but just in case...)
- Text::CSV
- With a regexp - if the fields don't contain commas within the values, you can split on /,/. If values can contain commas, the regexp will get a little hairier...