NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
column_names it is ... (Score:1)
I liked the idea of hr_** for its double meaning: Hash Ref and Header Row, but that might be professional brain deformation from my side.
While I was designing this, I also had DBI in mind, and the obvious next step to try is bind_columns ().
With the new column_names (), it would be nice to do a DBI like bind_keys () so fields are stored in the same scalar over and over again, instead of creating a new scalar on parsing for every field line after line again.
This *could* mean a big speed gain, but otoh it could also slow down regular parses. If the gain is high enough, compared to the speed loss, this could then be proagated to be the `standard' way of parsing.
BTW public git is http://repo.or.cz/w/Text-CSV_XS.git?a=shortlog [repo.or.cz]
And I'd prefer feature discussions in PerlMonks instead: http://www.perlmonks.org/?node=617577 [perlmonks.org]
Enjoy, have FUN! H.Merijn
Reply to This