Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: CSV_XS issue

by wassmp1 (Initiate)
on Sep 04, 2013 at 19:49 UTC ( #1052433=note: print w/replies, xml ) Need Help??

in reply to Re: CSV_XS issue
in thread CSV_XS issue

You're reply pointed me in the right direction - even though there were no error messages when I invoked ->new, I discovered that there is a diagnostic facility available if the "new" constructor fails. When I included it:

my $csv = Text::CSV_XS->new ({ binary => 1 }) or die "".Text::CSV_XS->error_diag();

It informed me that I was using an unsupported argument. Further investigation showed that the Linux version of CSV_XS was older than the Windows version, and apparently does not support the same set of arguments.

Thanks for your help!

Replies are listed 'Best First'.
Re^3: CSV_XS issue
by Tux (Abbot) on Sep 05, 2013 at 06:34 UTC

    auto_diag was added back in version 0.66, which was back in Aug 2009. If you are using a version that old, there are a lot of bugs to encounter still.

    You might have picked up the new (better) invocation from documentation not on your system. Reading docs from any resource other than the box your module is installed might always lead to inconsistencies.

    Enjoy, Have FUN! H.Merijn
Re^3: CSV_XS issue
by sundialsvc4 (Abbot) on Sep 05, 2013 at 01:50 UTC

    Yep... I was beginning to get suspicious.   Turns out that you were comparing Apples to Oranges, not Windows to Linux.   Please tell us what version of CSV_XS is installed on each, e.g.:

    perl -e 'use CSV::XS; print "CSV::XS->VERSION" . "\n";

    Insofar as possible, Perl is very much an “environment agnostic” programming tool.   But, heh, those environments sure can get interesting . . .

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052433]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2018-04-24 19:18 GMT
Find Nodes?
    Voting Booth?