in reply to Splitting a string on commas except when inside quotes
I strongly recommend Text::CSV / Text::CSV_XS.
(There are others, like Regexp::Common::balanced and Text::Balanced, but I only mention these for completeness, the above should be preferred in this case.)
|
|---|