Skip Menu |
 

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

Report information
The Basics
Id: 96254
Status: resolved
Priority: 0/
Queue: Math-Currency

People
Owner: Nobody in particular
Requestors: pboyd [...] cpan.org
Cc:
AdminCc:

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



Subject: Error when dividing plain numbers by a Math::Currency object
Download (untitled) / with headers
text/plain 460b
I'm seeing a problem when attempting to divide a normal number by a Math::Currency object: $ perl -MMath::Currency -E'say 1 / Math::Currency->new(1)' Can't use string ("1.00") as a HASH ref while "strict refs" in use at [...]/perl-5.12.1/lib/5.12.1/Math/BigFloat.pm line 1787. $ perl -MMath::Currency -MMath::BigFloat -E'say "Math::Currency=$Math::Currency::VERSION"; say "Math::BigFloat=$Math::BigFloat::VERSION"' Math::Currency=0.47 Math::BigFloat=1.9993
Download (untitled) / with headers
text/plain 640b
On Thu Jun 05 11:56:47 2014, pboyd wrote: Show quoted text
> I'm seeing a problem when attempting to divide a normal number by a > Math::Currency object: > > $ perl -MMath::Currency -E'say 1 / Math::Currency->new(1)' > Can't use string ("1.00") as a HASH ref while "strict refs" in use at > [...]/perl-5.12.1/lib/5.12.1/Math/BigFloat.pm line 1787.
This was a behavior change in Math::BigFloat that actually was released in 0.997: http://perl5.git.perl.org/perl.git/commitdiff/66a0495875e8130c45cac4fabd5f8d05f2f4c372 I've reported the problem upstream with a trivial fix: https://rt.cpan.org/Ticket/Display.html?id=96329 Thanks for the bug report.
Download (untitled) / with headers
text/plain 121b
This patch has been applied upstream which fixes the issue. Marking this ticket as resolved. -- Regards, Michael Schout


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.