Skip Menu |

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 25462
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Math-BigInt

People
Owner: TELS [...] cpan.org
Requestors: gypark [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.80
Fixed in: (no value)



Subject: Problem with arithmetic operation with 1.80
Hello, The following script dies. #/usr/bin/perl use bignum; sub hexToChar { my ($h) = @_; length($h) % 2 == 0 || die "ha"; # <-- die here } hexToChar('0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b'); # length is 40 It doesn't die if I remove "use bignum;". POD of bignum says it loads Math::BigInt.. So I report here. I downgraded Math::BigInt to 1.79 and this problem didn't occur. Sorry for my poor English :-) G.Y.Park in South Korea P.S. I found this problem when I was trying to install Num::OpenID::JanRain::Consumer module. After I downgrade BigInt, this problem vanished but a lot of new errors occurred in test process. These new errors are related to "Math::BigInt::bcmp" operation, so I doubt there is another problem in BigInt 1.79.. I'll report it again if I can find the exact reason.
On Thu Mar 15 09:33:46 2007, gypark@gmail.com wrote: Show quoted text
> Hello, > > The following script dies. > > #/usr/bin/perl > use bignum; > sub hexToChar { > my ($h) = @_; > length($h) % 2 == 0 || die "ha"; # <-- die here > } > hexToChar('0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b'); # length is 40 > > > It doesn't die if I remove "use bignum;". POD of bignum says it loads > Math::BigInt.. So I report here. I downgraded Math::BigInt to 1.79 and > this problem didn't occur. > > Sorry for my poor English :-) > > G.Y.Park in South Korea > > P.S. > > I found this problem when I was trying to install > Num::OpenID::JanRain::Consumer module. After I downgrade BigInt, this > problem vanished but a lot of new errors occurred in test process. > These new errors are related to "Math::BigInt::bcmp" operation, so I > doubt there is another problem in BigInt 1.79.. I'll report it again > if I can find the exact reason.
I cannot replicate this issue, the script works fine for me with Math::BigInt 1.79, 1.80, 1.81 and 1.82 :/ All the best, tels
I am marking this bug as resolved as I didn't get any feedback to the contrary. If this is not yet fixed with the newest v1.87 of Math::BigInt, please re-open this bug report. All the best, Tels