Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: why are hex values not numbers?

by hippo (Bishop)
on Sep 26, 2016 at 21:49 UTC ( [id://1172681]=note: print w/replies, xml ) Need Help??


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 ...?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1172681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found