nutcr0cker has asked for the wisdom of the Perl Monks concerning the following question:

I needed to manipulate a 64bit hex number and looking round I found that math:bigint can help. I used cpan to installmath:bigint module however, I cannot compile perl script with use bigint else perl.exe crashes. Any other way to install math:bigint or any function to convert hex to Integer strawberry perl ver 5.22 32bit
  • Comment on Math:Bigint module install issue on win 7 32 bit

Replies are listed 'Best First'.
Re: Math:Bigint module install issue on win 7 32 bit
by haukex (Archbishop) on May 11, 2016 at 06:11 UTC
      even a simple code causes perl.exe to crash
      use Math::BigInt; $ro = 0;
        I checked on my Active State 5.22 installation on Win XP 32 bit and BigInt is already there; code below works fine without installing anything. haukex says BigInt also comes with Strawberry 5.22. Most likely cause of your woes is a botched installation of something that you didn't even need to install! I would uninstall your Perl, then re-install a fresh copy. If BigInt is there, you are done. If not, then report back with exact details of what you are doing and messages that you see.
        #!usr/bin/perl use warnings; use strict; use Math::BigInt; my $ro=0; print $ro;
Re: Math:Bigint module install issue on win 7 32 bit
by syphilis (Archbishop) on May 11, 2016 at 07:33 UTC
    I cannot compile perl script with use bigint else perl.exe crashes

    It's very difficult to envisage just how one might install Math::BigInt in such a way that it causes the behaviour you describe.
    One suspects that you must have done something else.

    What was the exact command that you ran to install Math::BigInt ?
    What does perl -V output ?

    Cheers,
    Rob