Subject: | incorrect parsing of simple CSV file |
Date: | Fri, 24 Oct 2014 12:48:33 +0200 |
To: | bug-Text-CSV [...] rt.cpan.org |
From: | Grzegorz Kaczor <gkaczor [...] e-point.pl> |
Hello
I have Text::CSV version 1.32.
I try to parse file with that contents:
"data_quality_id";"language_version_id";"name"
"0";"2";"0%"
"10";"2";"33%"
"20";"2";"66%"
"30";"2";"100%"
and this configuration:
my $csv = Text::CSV->new ( { binary => 1, sep_char => ';', allow_whitespace
=> 1, quote_char => '"' } )
or die "Cannot use CSV: ".Text::CSV->error_diag ();
but Text::CSV instead of finding language_version_id with value "2" in row
with "0" in first column finds language_version_id with value "2;%"
This is independent on setting of column types.
Is there a workaround or an easy fix to this?
Regards,
Grzegorz