blazar has asked for the wisdom of the Perl Monks concerning the following question:
Not a real problem for me, but by accidentally leaving a
use bigint;
line in some code that was not needing it anymore, I found that it triggers an error that can be reproduced by trying one of the examples found in perldoc bigint itself, namely:
$ perl -Mbigint -le 'print log(2)' Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/5 +.8.8/Math/BigInt/Calc.pm line 1338.
(I don't know if this is a possible bug in bigint itself or in Math::BigInt, and passing the 't' option to the former doesn't really help, see below)
$ perl -Mbigint=t -le 'print log(2)' MBI imp +ort Math::BigInt::Trace :constant MBI new '2' => '2' (Math::BigInt::Trace) Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/5 +.8.8/Math/BigInt/Calc.pm line 1338.
Just thought this may be interesting. Tested with 5.8.8 under both Linux and Windows.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bug in bigint?
by shmem (Chancellor) on Dec 01, 2006 at 19:17 UTC | |
|
Re: bug in bigint?
by swampyankee (Parson) on Dec 01, 2006 at 18:04 UTC | |
by blazar (Canon) on Dec 01, 2006 at 18:59 UTC |