Hello Merijn,
the Text::CSV_XS documentation suggests to use error_diag like this:
$csv = Text::CSV_XS->new ({ ecs_char => 1 }) or
die Text::CSV_XS->error_diag ();
to get this result:
"Unknown attribute 'ecs_char'"
However, it returns this result:
1000Unknown attribute 'ecs_char'0 at /tmp/csv2.pl line 4.
Probably the documentation should be changed to force the stringified
output, maybe like this:
$csv = Text::CSV_XS->new ({ ecs_char => 1 }) or
die "" . Text::CSV_XS->error_diag ();
Regards,
Slaven
Bug #46076 for Text-CSV_XS: Documentation example for Text::CSV_XS->error_diag () in scalar context is wrong
This queue is for tickets about the Text-CSV_XS CPAN distribution.
Report information
The Basics
People
Owner:
Nobody in particular
Requestors:
SREZIC [...] cpan.org
Cc:
AdminCc:
BugTracker
Severity:
Unimportant
Broken in:
0.35
Fixed in:
0.65
This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.
Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.