Skip Menu |

This queue is for tickets about the bignum CPAN distribution.

Report information
The Basics
Id: 22835
Status: resolved
Worked: 10 min
Priority: 0/
Queue: bignum

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

Bug Information
Severity: Important
Broken in: 0.17
Fixed in: (no value)



Subject: Unable to pass multiple options on loading
Using bignum-0.17 and perl-5.8.4 on Debian, I am not able to pass multiple options to bignum when loading it via use. In the docs it says you can do things like "-Mbignum,a,5" or "use bignum a => 5;", however this does not work when you need to pass multiple variables (example, I want to set math library to GMP, accuracy to 100, precision to -100). I cannot find a sane way to specify more options either.
On Sun Nov 05 19:53:47 2006, bparker wrote: Show quoted text
> Using bignum-0.17 and perl-5.8.4 on Debian, I am not able to pass > multiple options to bignum when loading it via use. > > In the docs it says you can do things like "-Mbignum,a,5" or "use bignum > a => 5;", however this does not work when you need to pass multiple > variables (example, I want to set math library to GMP, accuracy to 100, > precision to -100). I cannot find a sane way to specify more options
either. Setting both accuracy and precision at the same time is an error - this will never work :) Otherwise, you can just chain the options like so: perl -Mbignum=a,100,l,GMP -le 'print 2 ** 0.5' The only thing not working is passing more than one library to bignum this way, since the "l" parameter only looks at the next argument. Best wishes, Tels
I improved the documentation of bignum et. al., and added more examples. The only thing left is specifying more than one library and I do not see how I can this implement at the moment. So I am marking this bugreport as solved. If you do have more problems, do not hesitate to either reopen this bug by replying to this message, or open a new one. Thank you for you report! Best wishes, Tels