in reply to Text::CSV and very large Text Files

Use Text::xSV instead. It's pureperl, very fast, and handles edge cases better than Text::CSV or Text::CSV_XS. Oh - and it allows for any single-character separator. :-)
  • Comment on Re: Text::CSV and very large Text Files

Replies are listed 'Best First'.
Re^2: Text::CSV and very large Text Files
by jZed (Prior) on Apr 22, 2005 at 04:08 UTC
    > Use Text::xSV instead. update And I'd agree that if a pure perl solution is needed, it is the best and should be used instead of Text::CSV.
    Text::xSV is a very good moudle.
    > It's pureperl, very fast,
    But not as fast as Text::CSV_XS, see Benchmark comparison of Text::xSV and Text::CSV_XS. In many cases that speed difference wouldn't matter but the OP is specifically talking about large files where speed is an issue.
    > and handles edge cases better than Text::CSV
    Perhaps.
    > or Text::CSV_XS.
    Which edge cases does it handle better? See Comparison of the parsing features of CSV (and xSV) modules
    > Oh - and it allows for any single-character separator. :-)
    As do both Text::CSV and Text::CSV_XS.