NAME
Data::TableReader::Decoder::IdiotCSV - Access rows of a badly formatted comma-delimited test file
VERSION
version 0.001
DESCRIPTION
This decoder deals with those special people who think that encoding CSV is as simple as
print join(',', map { qq{"$_"} } @row)."\n";
regardless of their data containing quote characters or newlines, resulting in garbage like
"First Name","Last Name","Full Name"
"Joe","Smith","Joe "Bossman" Smith"
This can actually be processed by the Text::CSV module with the following configuration:
{
binary => 1,
allow_loose_quotes => 1,
allow_whitespace => 1,
escape_char => undef,
}
And so this module is simply a subclass of Data::TableReader::Decoder::CSV which provides those defaults to the parser.
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.