Perl: the Markov chain saw | |
PerlMonks |
Re^2: OO best practice basic questionsby tobyink (Canon) |
on Aug 27, 2014 at 20:16 UTC ( [id://1098806]=note: print w/replies, xml ) | Need Help?? |
Even from inside the class, you should access fields/attributes via the accessors. Otherwise you'll make life harder for yourself if/when you need to subclass your class.
w00t! I just noticed that as of Perl 5.20, this document links to one of my modules. :-)
In Section
Seekers of Perl Wisdom
|
|