Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Leading Zeros confound eval() ?

by toolic (Bishop)
on Jul 21, 2015 at 18:54 UTC ( [id://1135697]=note: print w/replies, xml ) Need Help??


in reply to Leading Zeros confound eval() ?

Just a guess... in the eval, Perl interprets 016 as an octal number, which equals 14 decimal. 14x10=140 (Scalar value constructors).
print 016*10, "\n"; 140

Log In?
Username:
Password:

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

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

    No recent polls found