$number = hex("ffff12c0"); sprintf("%lx", $number); # (That's an ell, not a one.)