encapsulation of class attributes (if you care about that sort of thing)
You should care. Otherwise, why are you bothering with OO at all?
Automating get/set methods with AUTOLOAD
No, that breaks encapsulation. AUTOLOAD isn't the best way to do that, anyway. Putting sub refs directly into the symbol table at runtime is much faster.
----
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Re: How to measure Perl skills?
by hardburn
in thread How to measure Perl skills?
by optimist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |