Subject: | wish: integrate row-as-hashref feature from Parse::CSV |
Merijn,
Thanks for your careful maintainership of Text::CSV_XS. It is an
important, widely used module and I appreciate your help with it.
There is perhaps only one important feature I think it lacks, and it is
already mentioned on the "TODO" list: That's the ability to get a row
back has a hashref.
Parse::CSV has now been published and has code for this which can be
borrowed, so that something like "getline_href" can be added.
Currently Parse::CSV has a couple of weaknesses which prevent it from
being useful as a wrapper:
- It hardcoded all of the Text::CVS options to new, so new options
added by Text::CSV_XS like blank_is_undef are not automatically supported.
- It does not use "getline()", so binary mode is not supported.
While Parse::CSV could also be patched to fix these things, it strikes
me as a better solution for Text::CSV_XS to borrow the one great feature
that it adds.
I have some potential interest helping with this, since I have a current
desire for being able to parse CSV files with embedded newlines and get
a hashref back.