in reply to converting large hex values

Thats not directly supported, but the module bignum seems to provide it.

Replies are listed 'Best First'.
Re^2: converting large hex values
by Spooky (Beadle) on Jul 30, 2009 at 13:23 UTC
    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
      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....