in reply to split on comma unless within quotes...
The better approach is to use Text::CSV_XS (or Text::CSV, if you like).