in reply to Splitting strings with enclosed delimiters

Text::ParseWords::quotewords will work given the few sample lines of input you have provided, but it makes certain assumptions about your data format:

If these assumptions don't match your data, you might want to take a look at Text::CSV_XS ... the constructor allows you to specify attributes like: what quote character to use, what seperator character is, what escape character to use.

  • Comment on Re: Splitting strings with enclosed delimiters