in reply to Re^2: How to use split() in perl to ignore white space and ','
in thread How to use split() in perl to ignore white space and ','

Sure, if you can exactly tell what the regex should accomplish -
  1. split commas
  2. except commas between quotes
  3. except it's not between any quotes, but the quotes must be balanced
  4. perhaps the quotes are nested
  5. escaped quotes (\') have to be exempt
  6. the same conditions for double quotes
  7. them mixed and matched
  8. what about escaped commas (\,)?
  9. other special cases I forgot to think of?
I do use split sometimes, but only if it's guaranteed to be commas only. As soon as a special case becomes visible on the horizon, I use Text::CSV (which in turn uses Text::CSV_XS if possible).