There is actually one edge parsing case that Text::xSV handles differently than Text::CSV_XS where I think that Text::xSV's behaviour is more convenient. (There being no spec, it is impossible to say which is right.) In Text::xSV if you have ,, the embedded field is going to be
undef, while if you have ,"", the embedded field is an empty string. (This distinction is drawn on writing as well.) Both of those come out as an empty string in Text::CSV_XS.
This behaviour was deliberately chosen to match how Microsoft tools export/import data. Access will turn ,, into a NULL and ,"", into an empty string, and will export them that way as well. Or at least that was how it worked when I last used Access. I don't think that you can draw this distinction in Text::CSV_XS.
Other than that, I believe that the two should have identical capabilities with default settings. But Text::CSV_XS has increased flexibility for changing how it handles parsing (eg changing quote character, delimiter, etc), and Text::xSV has increased flexibility for changing how you can access/manipulate data on the fly (aliases, computed fields).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.