in reply to Perl OO and accessors
When you're introduced to OO through Perl, you write accessors. But, that's not because you need to in order to write OO - it's to reduce the possibility of typos when dealing with hash-based objects.
More importantly, it's so you can maintain the same interface without dictating any internal implementations of any other class that has to offer the same interface. My article in the December 2005 The Perl Review explains more.
|
|---|