in reply to to convert 16 dig hex to dec

Use BigInt:

use Math::BigInt; my $x = Math::BigInt->new ('0x9DBE062CB1F34287'); print $x; Output: 11366529298563547783

Perl is Huffman encoded by design.