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


in reply to Re^2: Hex Question(s)
in thread Hex Question(s)

No, Perl's treating it like any other hex string in that it's not a valid number. Perl understands hex numeric literals, but they're silently converted to decimal under the hood. If you want to do manipulation of numbers then you need to use hex to parse the number to decimal and then only reformat as hex on the way out after you're done manipulating it.

Update: Ooh, better said here up above.

The cake is a lie.
The cake is a lie.
The cake is a lie.