more useful options | |
PerlMonks |
Re^4: Recap: The Future of Perl 5by Ovid (Cardinal) |
on Aug 29, 2018 at 16:57 UTC ( [id://1221312]=note: print w/replies, xml ) | Need Help?? |
I found this surprising, and had to pause to think for a second or 2. How common is it in other OO languages to not need "self" to reference instance variables in instance methods? Java does this too. You can disambiguate (if you have a local variable of the same name), with this. For example, this.x.
In Section
Meditations
|
|