http://www.perlmonks.org?node_id=616870


in reply to String to Hex

You are probably on a 32bit platform. The "%x" template handles up to 2**32-1 (which is 0xffffffff), and 24600988483 is far above that value.

update: jettero got it:

perl -MMath::BigInt -le 'print Math::BigInt->new(24600988483)->as_hex( +)' 0x5ba554b43

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}