Accessors are simple. They're one liners. I find code that just spells out the accessors much simpler than code that uses a module to create the accessors for them - no matter how simple the module is.
# Look ma, no module! sub get_attribute {$attribute {refaddr $_[0]}} sub set_attribute {$attribute {refaddr $_[0]} = $_[1]}
In reply to Re: Can I please have *simple* modules?
by Perl Mouse
in thread Can I please have *simple* modules?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |