There's more than one way to do things | |
PerlMonks |
Re^4: I dislike object-oriented programming in generalby pvande (Initiate) |
on Oct 20, 2007 at 20:37 UTC ( [id://646214]=note: print w/replies, xml ) | Need Help?? |
The reason why that doesn't work is a legacy error in the ECMAScript standard. By following a numeral with a dot, the parser expects that you're defining a floating-point value, rather than an integer. You can still call methods on it, however, if you disambiguate by wrapping it in parentheses first.
In Section
Meditations
|
|