|
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.
|