in reply to Re: converting large hex values
in thread converting large hex values

Thanks - ..at a command line when I enter the following: >perl -Mbignum=a,50 -le 'print 0xbe91cfb586466d02'...it returns: 13731985117378145538 (exactly the value I want). The Perl script I'm running has at the top the following line: #!/fs/COTS/gnu/bin/AIX/perl - followed by the rest of the source code. I'm now wondering how I can introduce the "-Mbignum" statement into the source code in order to get the precision I'm looking for - any ideas? ..thanks

Replies are listed 'Best First'.
Re^3: converting large hex values
by toolic (Bishop) on Jul 30, 2009 at 13:37 UTC
    The simplest thing to try is (as suggested by bignum):
    #!/fs/COTS/gnu/bin/AIX/perl use bignum;
      ..unfortunately, simply using the "use bignum" still didn't produce the precision that the "Mbigum=a,50" produced - I'll continue to try different options....
        -Mbigum=a,50 is actually use bignum a => 50;