Error in perl module "bignum"...

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Error in perl module "bignum"...

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


    Chubasco Guest

  2. Similar Questions and Discussions

    1. "diameter", "has_a_cycle" problems in Graph-0.76 module
      Hello all, I have some problems with these two functions in Graph : "diameter" and "has_a_cycle". "diameter" works only at the first time it's...
    2. Problem installing a perl module "File exists"
      Hello, i'm trying to install the Date::Simple module, but i have an error: $ tar xvzf Date-Simple-3.01.tar.gz Date-Simple-3.01/...
    3. how to know if a module is "stock" (i.e. comes with Perl install)
      >>>>> "Kevin" == Kevin Pfeiffer <pfeiffer@iu-bremen.de> writes: Kevin> I have a feeling this a FAQ... Kevin> I've CPANed so many modules I no...
    4. #25451 [Opn->Bgs]: OCI.dll error "Specified module not found" for both Oracle 8i and 7i OCI.DLL
      ID: 25451 Updated by: sniper@php.net Reported By: damien_heiser at cable dot comcast dot com -Status: Open...
    5. #25451 [NEW]: OCI.dll error "Specified module not found" for both Oracle 8i and 7i OCI.DLL
      From: damien_heiser at cable dot comcast dot com Operating system: Windows 2000 SP4 PHP version: 4.3.3 PHP Bug Type: OCI8...
  3. #2

    Default Re: Error in perl module "bignum"...

    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
    Eric R. Meyers Guest

  4. #3

    Default Re: Error in perl module "bignum"...

    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???
    Goto rt.cpan.org and create a bug ticket. If you find the fix, give them
    that fix too, along with the error output.

    [url]http://rt.cpan.org/Public/Dist/Display.html?Name=Math%3A%3ABigInt[/url]

    Eric
    Eric R. Meyers Guest

  5. #4

    Default Re: Error in perl module "bignum"...

    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
    harryfmudd [AT] comcast [DOT] net Guest

  6. #5

    Default Re: Error in perl module "bignum"...

    "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.
    Eric R. Meyers Guest

  7. #6

    Default Re: Error in perl module "bignum"...

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



    Chubasco Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139