Click here to get back home

Error in perl module "bignum"...

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Error in perl module "bignum"... Chubasco 05-14-2006
Posted by Chubasco on May 14, 2006, 4:31 pm
Please log in for more thread options


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.

Any ideas as to how to resolve this problem???



Posted by Eric R. Meyers on May 14, 2006, 4:53 pm
Please log in for more thread options


Chubasco wrote:

> 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.
>
> Any ideas as to how to resolve this problem???

First look at 'copy' on line 97 of that file. Then you should look for a
require that looks related to the 'copy' context, something like 'require
File::Copy' maybe. Change 'copy' to 'File::Copy::copy', or just 'use
File::Copy'.

Eric

Posted by harryfmudd [AT] comcast [DOT] on May 14, 2006, 9:36 pm
Please log in for more thread options


Eric R. Meyers wrote:
> Chubasco wrote:
>
>
>>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.
>>
>>Any ideas as to how to resolve this problem???
>
>
> First look at 'copy' on line 97 of that file. Then you should look for a
> require that looks related to the 'copy' context, something like 'require
> File::Copy' maybe. Change 'copy' to 'File::Copy::copy', or just 'use
> File::Copy'.
>
> Eric

I doubt this has anything to do with File::Copy. Line 97 turns out to be
the code for overloading the '+' operator (at least, in Math::BigInt
1.77), and appears to be referring to Math::BigInt's own copy() method.

To me, there is insufficient information in the original post to tell
what the problem is. A _minimal_ script exhibiting the problem would help.

That said, general advice would be to be sure the latest versions of the
modules involved are in use. In the case of ActivePerl, this means
something like

ppm> upgrade

(which actually upgrades nothing - it just says what needs to be upgraded).

Should the original poster find that the problem exists with the latest
modules and decide to file a bug report, this minimal script should be
included, along with the version numbers of both bignum and Math::BigInt
(just to assure the maintainer that you _did_ use the latest), and in
addition to the Perl version number and the OS you're using.

Tom Wyant

Posted by Eric R. Meyers on May 14, 2006, 11:05 pm
Please log in for more thread options


"harryfmudd [AT] comcast [DOT] net" <"harryfmudd [AT] comcast [DOT] net">
wrote:

> Eric R. Meyers wrote:
>> Chubasco wrote:
>>
>>
>>>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.
>>>
>>>Any ideas as to how to resolve this problem???
>>
>>
>> First look at 'copy' on line 97 of that file. Then you should look for a
>> require that looks related to the 'copy' context, something like 'require
>> File::Copy' maybe. Change 'copy' to 'File::Copy::copy', or just 'use
>> File::Copy'.
>>
>> Eric
>
> I doubt this has anything to do with File::Copy. Line 97 turns out to be
> the code for overloading the '+' operator (at least, in Math::BigInt
> 1.77), and appears to be referring to Math::BigInt's own copy() method.
>
> To me, there is insufficient information in the original post to tell
> what the problem is. A _minimal_ script exhibiting the problem would help.
>
> That said, general advice would be to be sure the latest versions of the
> modules involved are in use. In the case of ActivePerl, this means
> something like
>
> ppm> upgrade
>
> (which actually upgrades nothing - it just says what needs to be
> upgraded).
>
> Should the original poster find that the problem exists with the latest
> modules and decide to file a bug report, this minimal script should be
> included, along with the version numbers of both bignum and Math::BigInt
> (just to assure the maintainer that you _did_ use the latest), and in
> addition to the Perl version number and the OS you're using.
>
> Tom Wyant

Yes, I just gave File::Copy as a close example for something that might have
been in a require providing a copy function, because I didn't know what the
copy was supposed to have been coming from, off the top of my head. No big
deal. I went with what I knew from his post, and my advise was correct, I
think. Usually that problem has to do with what I wrote to him.

Posted by Chubasco on May 15, 2006, 2:48 am
Please log in for more thread options


> To me, there is insufficient information in the original post to tell what
> the problem is. A _minimal_ script exhibiting the problem would help.
>

Not much add. My program works fine without the "use bignum" statement, and
fails when
the "use bignum" statement is included. This says to me that this is an
error in the library.

> That said, general advice would be to be sure the latest versions of the
> modules involved are in use. In the case of ActivePerl, this means
> something like

The latest version of ActiveState Perl is loaded.

> Should the original poster find that the problem exists with the latest
> modules and decide to file a bug report, this minimal script should be
> included, along with the version numbers of both bignum and Math::BigInt
> (just to assure the maintainer that you _did_ use the latest), and in
> addition to the Perl version number and the OS you're using.

A bug report has been filed.




Similar ThreadsPosted
Perl-Tk module - relocation error December 2, 2004, 4:12 pm
creating perl binary using PAR module , execution error under unix March 15, 2008, 7:06 am
bignum 0.22 July 4, 2007, 9:43 am
Spreadsheet::ParseExcel error on Perl 5.8.0 November 7, 2005, 6:02 am
Error In Using Perl To Connect To MySQL May 27, 2006, 2:59 am
Problem around bignum March 28, 2006, 6:04 am
Error in Perl Inline::C program running November 3, 2005, 4:00 am
Perl DBI/DBD MySQL User Authentication Error June 10, 2006, 2:12 pm
bignum incompatible with loos_like_number ??? June 26, 2007, 10:05 pm
bignum incompatible with looks_like_number() ??? June 26, 2007, 10:17 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap