On Thu, 14 May 2009 10:28:24 -0400, "Slaven_Rezic via RT"
<bug-Text-CSV_XS@rt.cpan.org> wrote:
Show quoted text> 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 ();
Nice catch. Thanks. What is better in your opinion to clear this in the
docs
or die "".Text::CSV_XS->error_diag ();
or
or die scalar Text::CSV_XS->error_diag ();
--
H.Merijn Brand
http://tux.nl Perl Monger
http://amsterdam.pm.org/
using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00,
11.11, 11.23, and 11.31, OpenSuSE 10.3, 11.0, and 11.1, AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/