in reply to split on comma unless within quotes...
G'day bcarroll,
I'd strongly recommend not spending any time coding your own solution to this problem.
It's already been done in Text::CSV.
-- Ken