Skip Menu |

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 19253
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Math-BigInt

People
Owner: TELS [...] cpan.org
Requestors: eastonbeymer [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: 1.77



Subject: Error in bignum, BigInt...
In trying to use the module "bignum", I am getting the message "Can't call method "copy" without a package or object reference at C:/Perl/lib/Math/BigInt.pm line 97.". This is using ActiveState v.5.8.8 for MSWin32-x86-multi-thread.
Moin, can you please post a (very) short example that shows the bug occuring? Without sample code I can't see where the problem exactly is. best wishes, tels
Subject: RE: [rt.cpan.org #19253] Error in bignum, BigInt...
Date: Mon, 15 May 2006 10:17:57 -0700
To: <bug-Math-BigInt [...] rt.cpan.org>
From: "Easton Beymer" <eastonbeymer [...] hotmail.com>

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

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. Using bignum is necessary to replicate the 18 bcd digit math required by the cobol standard. The test program, test01a.pl is generated code from the compiler. To replicate the error, enter "perl test01a.pl". The failure is occuring at line 65 of test01a.pl, the first mathematic operation attempted. I am relying heavily on tieing in the runtime, and this may have something to do with the problem. Removing "use bignum" from test01a.pl and relying on native math allows the problem to disappear. I consider myself a Perl light weight, and do not understand much of what goes on in Perl -- the language is overwhelming. It is very likely that I have taken liberties with Perl that constitute bad programming practices, and has caused the problem. I will continue to try to develop a stripped down version of my code that fails. Thanks for taking a look at this for me. Easton Beymer Show quoted text
> Subject: [rt.cpan.org #19253] Error in bignum, BigInt... > From: bug-Math-BigInt@rt.cpan.org> To: eastonbeymer@hotmail.com> Date: Mon, 15 May 2006 08:28:34 -0400> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=19253 >> > Moin,> > can you please post a (very) short example that shows the bug occuring?> Without sample code I can't see where the problem exactly is.> > best wishes,> > tels
Show quoted text
_________________________________________________________________ Enter the Windows Live Mail beta sweepstakes http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx
Subject: Re: [rt.cpan.org #19253] Error in bignum, BigInt...
Date: Mon, 15 May 2006 20:13:21 +0200
To: bug-Math-BigInt [...] rt.cpan.org
From: Tels <nospam-abuse [...] bloodgate.com>
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
Download (untitled)
application/pgp-signature 481b

Message body not shown because it is not plain text.

Subject: RE: Re: [rt.cpan.org #19253] Error in bignum, BigInt...
Date: Mon, 15 May 2006 11:45:42 -0700
To: <bug-Math-BigInt [...] rt.cpan.org>
From: "Easton Beymer" <eastonbeymer [...] hotmail.com>
any chance of deleting this message from rt.cpan.org? Show quoted text
> Subject: Re: [rt.cpan.org #19253] Error in bignum, BigInt...> From: bug-Math-BigInt@rt.cpan.org> To: eastonbeymer@hotmail.com> Date: Mon, 15 May 2006 14:14:00 -0400> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=19253 >> > Moin,> > On Monday 15 May 2006 19:18, eastonbeymer@hotmail.com via RT wrote:> > 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> >
Show quoted text
_________________________________________________________________ Join the next generation of Hotmail and you could win the adventure of a lifetime http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx
Subject: Re: [rt.cpan.org #19253] Error in bignum, BigInt...
Date: Mon, 15 May 2006 20:52:17 +0200
To: bug-Math-BigInt [...] rt.cpan.org
From: Tels <nospam-abuse [...] bloodgate.com>
Moin, On Monday 15 May 2006 20:46, eastonbeymer@hotmail.com via RT wrote: Show quoted text
> Queue: Math-BigInt > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=19253 > > > any chance of deleting this message from rt.cpan.org?
I emailed the RT admins and hopefully they will help and delete it. Oh, btw, can you please use something else than hotmail to work with RT? It has horrible broken email texts like HTMl and other garbage, which clog up the rt system! :) (Sorry that this is so complicated :) best wishes, tels -- Signed on Mon May 15 20:50:59 2006 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. "One man in a thousand is a leader of men, the other 999 follow women" -- Groucho Marx
Download (untitled)
application/pgp-signature 481b

Message body not shown because it is not plain text.

I mark this bug as resolved for now, if you still have problems please reopen this bug by responding to this message. Thanx again, tels