NAME

Data::TableReader::Decoder::CSV - Access rows of a comma-delimited text file

VERSION

version 0.001

DESCRIPTION

This decoder wraps an instance of either Text::CSV or Text::CSV_XS. You may pass your own options via the "parser" attribute, which will override the defaults of this module on a per-field basis.

This module defaults to:

parser => {
  binary => 1,
  allow_loose_quotes => 1,
  auto_diag => 2,
}

ATTRIBUTES

parser

The instance of Text::CSV or Text::CSV_XS. XS is used if it is installed. You may pass a hashref of options to this method, or your own instance of any module compatible with Text::CSV.

iterator

my $iterator= $decoder->iterator;

Return an iterator which returns each row of the table as an arrayref.

AUTHOR

Michael Conrad <mike@nrdvana.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Michael Conrad.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.