Skip Menu |

This queue is for tickets about the DBD-CSV CPAN distribution.

Report information
The Basics
Id: 11094
Status: resolved
Priority: 0/
Queue: DBD-CSV

People
Owner: JZUCKER [...] cpan.org
Requestors: davidhughjonesd [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.21
Fixed in: (no value)



Subject: hint in docs about unix eol
Just spent about an hour trying to figure out why I couldn't open my simple test file. Of course, my file had unix "\n" as the end of line character, and the default is "\r\n". A hint about this gotcha in the document would be helpful. cheers david
I should perhaps state it clearer, but here's the part of the docs that currently mention the issue - the default is "\015\012" (i.e. "\r\n): The attributes csv_eol, csv_sep_char, csv_quote_char and csv_escape_char are corresponding to the respective attributes of the Text::CSV_XS object. You want to set these attributes if you have unusual CSV files like /etc/passwd or MS Excel generated CSV files with a semicolon as separator. Defaults are "\015\012", ';', '"' and '"', respectively.