Re: YA CSV parser

2007-11-25 Thread Jim Schneider
Joshua ben Jore wrote: Didn't you just reinvent Text::CSV_XS? The only tweak required is saying "binary" to enable the use of newlines inside quoted fields. ->new({ binary => 1, # defaults eol => qq(\r\n), sep_char => q(,), quote_char => q("), escape_char => q("), }) Jo

Re: YA CSV parser

2007-11-25 Thread Jim Schneider
David Cantrell wrote: On Sun, Nov 25, 2007 at 01:59:46PM -0500, Jim Schneider wrote: I wrote a streaming CSV parser yesterday ... If anyone knows of a module on CPAN that does all this, please let me know. Otherwise, I'll upload my module sometime in the next week or two. BTW, the name

Re: YA CSV parser

2007-11-25 Thread Jim Schneider
A. Pagaltzis wrote: * Jim Schneider <[EMAIL PROTECTED]> [2007-11-25 20:00]: BTW, the name I'm currently using for this module is "CSV::Parse" - let me know if you have a specific suggestion for a name you like better. There is already a Parse::CSV on CPAN. I think it would be a bit con

Re: YA CSV parser

2007-11-25 Thread Joshua ben Jore
On Nov 25, 2007 10:59 AM, Jim Schneider <[EMAIL PROTECTED]> wrote: > I wrote a streaming CSV parser yesterday because I couldn't find a CSV > parsing module that does what I want (despite the plethora of available > choices). The parsing rules are pretty simple: > > 1) At the start of a field, if

Re: YA CSV parser

2007-11-25 Thread A. Pagaltzis
* Jim Schneider <[EMAIL PROTECTED]> [2007-11-25 20:00]: > BTW, the name I'm currently using for this module is > "CSV::Parse" - let me know if you have a specific suggestion > for a name you like better. There is already a Parse::CSV on CPAN. I think it would be a bit confusing to have CSV::Parse

YA CSV parser

2007-11-25 Thread Jim Schneider
I wrote a streaming CSV parser yesterday because I couldn't find a CSV parsing module that does what I want (despite the plethora of available choices). The parsing rules are pretty simple: 1) At the start of a field, if you find a quote string, eat the quote string and go to the state that