Re: Module to parse CSV string

2006-07-20 Thread Chap Harrison
On Jul 20, 2006, at 1:30 AM, Todd W wrote: Theres also Text::CSV_XS which is configurable (and faster than Text::CSV). Specifically, note the quote_char and escape_char arguments to the constructor... So there is - thanks! I discovered that one record has a field containing \r, which CSV_

Re: Module to parse CSV string

2006-07-19 Thread Todd W
"Chap Harrison" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm looking for a module or a perl code snippet to parse optionally- > quoted, comma-separated values. > > The most obvious candidate, Text::CSV, won't do the job for two reasons: > > -- it only recognizes doub

Module to parse CSV string

2006-07-19 Thread Chap Harrison
Hi, I'm looking for a module or a perl code snippet to parse optionally- quoted, comma-separated values. The most obvious candidate, Text::CSV, won't do the job for two reasons: -- it only recognizes double-quotes as the quote character. My input uses single-quotes. -- including the quote