in reply to Text::CSV_XS and blank lines
Would it help if I would add a feature that makes the number of fields parsed in the last line available?
Technically, an empty line is valid CSV, just the fact that it has no fields doesn't make it illegal. With row fetches, you notice immediately, but with hashref fetches you don't.
I'd mean something like
while (my $h = $csv->getline_hr ($fh)) { print "You fetched ", $csv->{field_count}, " fields into your hash +\n", }
Suggestions for a better name are welcome.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Text::CSV_XS and blank lines
by Jim (Curate) on Feb 04, 2011 at 17:11 UTC | |
by Tux (Canon) on Feb 04, 2011 at 18:51 UTC | |
by Jim (Curate) on Feb 04, 2011 at 19:18 UTC |