in reply to Parsing a generic file

I am new to perl and how would I achieve this?

You would super search and "google site:perlmonks.org" to find a dozen or so programs that do this already

They all use Text::CSV or Text::CSV_XS, some use App::CCSV , all you gotta do is find them