in reply to Re: Regex to do a smart split()
in thread Regex to do a smart split()

Do note that Text::CSV has been sitting at a 0.01 release since 1997 and should be considered deprecated. Text::CSV_XS is a much better choice. It's faster and has only been sitting since 2001 (a little better, anyway).

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Re: Regex to do a smart split()
by diotalevi (Canon) on Jan 30, 2004 at 17:07 UTC
    No, its the other way around. Text::CSV works for more data than Text::CSV_XS. I never looked into what the issue was but the XS version is clearly inferior to the plain-perl version because it works when the other version flat-out fails.

      According to replies to Reading escaped data from a CSV, Text::CSV doesn't handle embedded newlines (Text::CSV_XS will as long as you use binary mode). Though after looking though those replies, Text::xSV looks even better.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      : () { :|:& };:

      Note: All code is untested, unless otherwise stated

Re: Re: Re: Regex to do a smart split()
by Anonymous Monk on Jan 30, 2004 at 19:06 UTC
    and should be considered deprecated.
    Because it's old?