Consider that it is likely that:
If you still think you want to roll your own, then Text::Balanced is a core module that can help you deal with quoted strings.
In reply to Re^2: split on comma unless within quotes...
by Anonymous Monk
in thread split on comma unless within quotes...
by bcarroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |