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?? |
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...!
In Section
Seekers of Perl Wisdom
|
|