Comments (4)
Sorry for the delay. PTS happened and then I was Ill.
I think I just pushed the fix.
Thanks for reporting!
Your code used Text::CSV
instead of Text::CSV_XS
. I resolved that as
use 5.026002;
use warnings;
use Text::CSV_XS;
my $data = <<"EOC";
a,b,c
d,e
f,g,h
EOC
my $csv = Text::CSV_XS->new ({ strict => 1, auto_diag => 2 });
my ($foo, $bar, $baz);
$csv->bind_columns (\$foo, \$bar, \$baz);
open my $fh, "<", \$data;
while (my $status = $csv->getline ($fh)) {
say "Line parsed: foo = $foo, bar = $bar, baz = $baz";
}
$csv->error_input () and
warn "Error parsing CSV: ", $csv->error_diag (), "\n";
from text-csv_xs.
I have to wait for my new laptop to make a release
from text-csv_xs.
Someone found yet another issue with strict
, so I want to resolve that before a new release. Please be a bit more patient
from text-csv_xs.
1.55 is out
from text-csv_xs.
Related Issues (20)
- Offer option to not put empty columns into hashes created HOT 1
- Procedure (or method) returning the error text HOT 2
- csv in => $aoa, out => … produces a CSV file with two empty records when $aoa is empty HOT 2
- Turn off column naming munging HOT 2
- Multiple spaces as a separator? HOT 3
- Typo in sub csv() causes sep chars set to not work HOT 2
- getline_all does not understand scientific ("e") notation HOT 2
- BOM without a header line. HOT 6
- FR: Reading multiple CSVs from a single file HOT 6
- csvdiff HOT 3
- Double headers when both detect_bom and headers are provided HOT 3
- segmentation faults with serialised/deserialised objects from previous script runs HOT 8
- minor compilation warning: inconsistent format type spec HOT 1
- when reading line by line, skip_empty_rows('skip') does not skip a trailing empty row right before EOF
- improper reinitialization of $v_ref HOT 3
- need method to access the complete (unparsed) line HOT 1
- Quotes in the middle of an unquoted field produce misleading error HOT 6
- comment_str is not honoured in strict mode HOT 7
- consider the number of column names in strict mode HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from text-csv_xs.