When skip_empty_rows is set to skip, and Text::CSV is reading line by line, the first empty line is skipped, but the second empty line is returned as an empty row rather than undef (EOF).
I will open a PR for this, including tests that illustrate the situation more precisely.
This same bug is present in Text::CSV_XS; I will open a separate bug and PR for that project.
Given an input file like:
When skip_empty_rows is set to
skip
, and Text::CSV is reading line by line, the first empty line is skipped, but the second empty line is returned as an empty row rather thanundef
(EOF).I will open a PR for this, including tests that illustrate the situation more precisely.
This same bug is present in Text::CSV_XS; I will open a separate bug and PR for that project.
Thanks, Corey