in reply to Re^2: why are hex values not numbers?
in thread why are hex values not numbers?

Because decimals alone are special inside string literals. perldata states:

Hexadecimal, octal, or binary, representations in string literals (e.g. '0xff') are not automatically converted to their integer representation. The hex() and oct() functions make these conversions for you. See hex and oct for more details.

Consider the decimal autoconversion as a bit of handy magic, nothing more.

Replies are listed 'Best First'.
Re^4: why are hex values not numbers?
by perl-diddler (Chaplain) on Sep 27, 2016 at 06:37 UTC
    But it doesn't say "why". I don't see a reason ...?