Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^10: why are hex values not numbers?

by perl-diddler (Chaplain)
on Sep 27, 2016 at 20:03 UTC ( [id://1172777]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<>) {
      chomp;
    ...
    "65"
    Argument ""65"" isn't numeric in printf at -e line 5, <> line 3.
    input as string="65", as decimal=0
    
  2. or download this
    > while read a; do
    > printf "string=%s, as decimal=%d\n" $a $a
    ...
    string="0", as decimal=48
    "0x30"
    string="0x30", as decimal=48
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-24 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found