The stupid question is the question not asked | |
PerlMonks |
Re: The future of Text::CSV_XS - TODOby tfrayner (Curate) |
on May 28, 2007 at 22:57 UTC ( [id://617889]=note: print w/replies, xml ) | Need Help?? |
Hi, I think that making the eol option actually honour $/ would be extremely useful, and I think your suggested API for that would work fine. As I understand it (and the current behaviour of Text::CSV_XS certainly seems to bear me out) the module only handles \015\012 and \012 as CSV line endings for parsing input. It would be tremendously helpful if \015 was also supported. I'm assuming it's not, since I've never been able to get it to work despite occasional attempts over the years. There's also a note in the POD (CAVEATS) suggesting that alternate line endings are unsupported. I'm often surprised at the number of people out there still using spreadsheet software that generates CSV files with \015 line endings. I think older Mac OS machines, and some ill-behaved Mac OSX applications are at fault (if fault it really is). Cheers, Tim Update: based on the principle that every bug report should at least take a stab at giving a test case, here's what I'm talking about: That should output "a|b|c", and indeed does if $/ is set to \n or \r\n. Just clearing up any possible misunderstandings :-)
In Section
Meditations
|
|