Moin,
On Monday 15 May 2006 19:18, eastonbeymer@hotmail.com via RT wrote:
Show quoted text> Queue: Math-BigInt
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=19253 >
>
> Hi Tels,
>
> I tried coming up with a stripped down version, but the error goes away
> once I start stripping...
>
> Attached are the full programs causing the problem.
>
> Cobol.pm is the code for a runtime package for a cobol compiler written
> in Perl, and I consider it to be proprietary at this time.
Unfortunately, you just posted it to rt.cpan.org, a public website :)
I will try to see what's causing the problem, but it is very likely tie
plus the overload from bignum/bigint. Both bigint/bignum and bigrat are a
cheat/trick to trick Perl into working with long numbers. It works for
simple cases, but breaks down for more complicated stuff due to hairy
edge cases - a bigint is an overloaded object and a lot of code does not
expect to get something else than a scalar.
So in many cases it is better to use Math::BigInt (or BigFloat)
explicitely and use only long math when really nec. This also makes
things much faster, generally :)
Some comments:
* Please use an uppercase first letter for packages so "use Cobol;" and
not "use cobol;" unless you really want to write a pragma (which is some
sort of special package reserved for internal stuff enhancing Perl :)
* I don't have Win32/Console.pm - I took out the references to it and the
error occurs, so I guess it doesn't matter for this bug.
Thanx for your report,
Tels
--
Signed on Mon May 15 20:07:25 2006 with key 0x93B84C15.
Visit my photo gallery at
http://bloodgate.com/photos/
PGP key on
http://bloodgate.com/tels.asc or per email.
"Remember: If the game let's you do it, it's not cheating." -- Xarax