[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] test



On Sat, 28 Nov 1998 19:27:57 -0500 (EST), David Folk wrote:
>
>Paul,
>
>this gives the usual error. (the reason I don't just plug
>the values for $a and $b in is that I want to pass them 
>from a separate program... incidentally, putting quotes around
>the $a and/or $b either before or after I put them into new()
>doesn't change anything!

Oh, *those* warnings. If you're in the habit of using -w, you'll see
things like this regularly. I usually don't use -w.

The easiest thing for you to do is to copy BigInt.pm from your Unix box
and use it to replace the one in your MacPerl :lib:Math folder. I just did
a diff between MacPerl's BigInt.pm and the BigInt.pm in today's 5.005_03
trial release, and there are very few differences. all of which seem
designed to shut -w up. That includes a workaround for what you're
seeing.

You might also want to track down the archive for the Perl-5-Porters
mailing list and see what problems have been reported about Math::BigInt
My impression is that it's not well regarded.

>
>thanks!
>
>dave
>
>
>#!perl -w
>
>use Math::BigInt;
>
>$a = 1111111111111;
>$b = 12345;
>
>$a1 = Math::BigInt->new($a);
>$b1 = Math::BigInt->new($b);
>
>$c = $a1 / $b1;
>
>print $c;
>
>
>



-------
Paul J. Schinder
schinder@pobox.com


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch