On Mon Mar 03 01:13:42 2008, ikegami@adaelis.com wrote:
Show quoted text> On Sun, Mar 2, 2008 at 8:35 PM, Jeff Zucker <jeff@vpservices.com>
wrote:
Show quoted text>
> > If Text::CSV_PP behaves differently than Text::CSV_XS, that seems
like a
Show quoted text> > bug in Text:CSV_PP, why do you see it as a bug in the upstream
modules?
Show quoted text> >
>
> They behave the same when using the documented interface. Only when
you make
Show quoted text> assumptions about their implementations do they differ, and obviously
the
Show quoted text> implementations are different.
>
> The problem is that DBD::CSV relies on some undocumented side-effect
of
Show quoted text> Text::CSV_XS's implementation.
>
> -> You assume $! will continue to be set in future versions of the CSV
> parser class.
> -> You assume $! is currently always set when the CSV parser class
> encounters an error.
If you rely on $! to be the error from Text::CSV_??, don't. We now have
$csv->error_diag (), which is much more versatile.
I tested DBD::CSV today for my talk and missed error_diag () output
deerly.