in reply to Re: Text::CSV_XS and line-endings
in thread Text::CSV_XS and line-endings

That won't work with rows containing new-lines, which is very common in CSV data. Text::CSV_XS handles this when given the binary option.

-sam

Replies are listed 'Best First'.
Re^3: Text::CSV_XS and line-endings
by GrandFather (Saint) on Mar 16, 2006 at 22:29 UTC

    Although in that case OP is pretty stuffed in any case. He would almost have to write a replacement for CVS_XS to deal with the problem - no fun at all!


    DWIM is Perl's answer to Gödel
      Well, that's the case we're in (I work with friedo). If nothing else will work we can just use mac2unix if a scan of the first part of the file sees \r's and no \n's. It's a nasty hack but much better than reimplementing Text::CSV_XS!

      -sam

        In that case it looks like hack it must be. :(


        DWIM is Perl's answer to Gödel