Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Converting to number doesn't always work...

by harangzsolt33 (Chaplain)
on Nov 23, 2019 at 14:18 UTC ( [id://11109105]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Converting to number doesn't always work...
in thread Converting to number doesn't always work...

but I suspect it has something to do with the inherent dualvar nature of scalars (see Scalar::Util::dualvar): a scalar caches a string or numeric representation of its value if it was ever used as a string or number, and both representations may be present in the scalar at the same time and may represent entirely unrelated values!

Wow, that is clever! So, it's not really a bug...!

  • Comment on Re^4: Converting to number doesn't always work...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-24 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found