> [snipped helpful code]
> : And all is well if I create a new number and print it back,
> : both bstr() and fmtstr() work just as expected. However any
> : arithmetics fails with an "Unknown round mode ''" error. I
> : looked at Math::Currency which is a rather simple module
> : and I still can't figure out what am I doing wrong.
>
> Can you show us your test cases script, so we can see
> it fail?
Certainly. It's a simple as:
use Tools::Currency;
my $one = Tools::Currency->new ('1');
print ($one + 1);
which yields:
perl ./test
Unknown round mode '' at ./test line 3
Changing the two occurences of Tools::Currency to Math::Currency makes
it work just fine
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>