Subject: | Error when dividing plain numbers by a Math::Currency object |
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