in reply to Converting Hexadecimal to Decimal notation and vice-versa
It works for me (once I've fixed the errors in your posted code):
use strict; use warnings; use Math::BigInt; # Missing from your posted code my $x_dec = Math::BigInt->from_hex("0x000102030405060708090a0b0c0d0e0f +"); print $x_dec, "\n"; # Not $x, as in your posted code # Output: 5233100606242806050955395731361295
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting Hexadecimal to Decimal notation and vice-versa
by Anonymous Monk on Oct 17, 2009 at 18:34 UTC | |
by almut (Canon) on Oct 17, 2009 at 18:48 UTC | |
by Anonymous Monk on Oct 17, 2009 at 18:55 UTC | |
by almut (Canon) on Oct 17, 2009 at 19:08 UTC |