I'm using a split command to parse a comma separated value (CSV) file (there are no standard field sizes, they vary a lot) that is produced from a vendor product. It has worked well for years. The format is something like:
Recently the vendor started using single quoted strings in the data like 'IBM machine' or worse 'IBM,16576523'. Note the comma in the second one that throws off my split.
I'm not in love with split, I'll accept any valid perlish way that I can understand. What I need it is a way to parse a CSV file that knows to ignore commas within single quoted strings.
Any thoughts or areas to study that may yield a solution will be deeply appreciated.