![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: 02.5 == 25 - WTF?by Eily (Monsignor) |
on Nov 30, 2020 at 23:13 UTC ( #11124425=note: print w/replies, xml ) | Need Help?? |
I expect that trying print 010.5, "\n", which prints 85 might be a clue about what's happening. It seems like octal representation is always interpreted as an int, so you have int(010).5. In which case the dot is the concatenation operator.
In Section
Seekers of Perl Wisdom
|
|