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