http://www.perlmonks.org?node_id=880884

space_monk has asked for the wisdom of the Perl Monks concerning the following question:

Solution

Math::BigInt doesn't like a change of array field separator

$"='/';

Thanks for your help

Problem

I have tried updating various libraries, but I find I cannot remove the following errors.

Bareword found where operator expected at (eval 149) line 1, near "qw/ +Math::BigInt::FastCalc/SCALAR" Bareword found where operator expected at (eval 150) line 1, near "qw/ +Math::BigInt::FastCalc/SCALAR" Bareword found where operator expected at (eval 151) line 1, near "qw/ +Math::BigInt::FastCalc/SCALAR" Couldn't load any math lib(s), not even fallback to Calc.pm at /Librar +y/Perl/5.8.9/XML/Compile/Schema/BuiltInTypes.pm line 20 BEGIN failed--compilation aborted at /Library/Perl/5.8.9/XML/Compile/S +chema/BuiltInTypes.pm line 20. Compilation failed in require at /Library/Perl/5.8.9/XML/Compile/Schem +a/Specs.pm line 16. BEGIN failed--compilation aborted at /Library/Perl/5.8.9/XML/Compile/S +chema/Specs.pm line 16. Compilation failed in require at /Library/Perl/5.8.9/XML/Compile/Schem +a.pm line 22. BEGIN failed--compilation aborted at /Library/Perl/5.8.9/XML/Compile/S +chema.pm line 22. Compilation failed in require at (eval 144) line 3. ...propagated at /System/Library/Perl/5.8.9/base.pm line 93. BEGIN failed--compilation aborted at /Library/Perl/5.8.9/XML/Compile/C +ache.pm line 12. Compilation failed in require at (eval 143) line 3. ...propagated at /System/Library/Perl/5.8.9/base.pm line 93. BEGIN failed--compilation aborted at /Library/Perl/5.8.9/XML/Compile/W +SDL11.pm line 12.
The package where this happens starts as follows
package Suppliers::MySupplier; use HTTP::Cookies; use SOAP::Lite; # use SOAP::Lite +trace => debug; use SOAP::WSDL; use LWP::UserAgent; use HTTP::Request::Common; use Data::Dumper; use Suppliers::sbase; use Cwd; use Text::CSV; use JSON::XS; use XML::Compile::WSDL11; use XML::Compile::SOAP11; use XML::Compile::Transport::SOAPHTTP;
Commenting out the first two XML::Compile statements removes these errors, but I need these libraries later in the code. I am seeking enlightenment and education in the error of my ways.

System Info

System: Macbook Pro (Darwin Kernel Version 10.4.0)
Perl v5.8.9
Math::BigInt is v 1.99 Math::BigInt::FastCalc is at v0.24
There are no modifications to any official CPAN library