I was going to /msg you with "and don't use tie" but you beat me to it.
You return a tied value. Ugly, slow, and doable.
Why then would I ever have a need to go back and avoid lvalue subs?
Perhaps when you decide you need validation without an ugly and slow (but doable) implementation?
-sauoq "My two cents aren't worth a dime.";
In reply to Re^6: Perl OO and accessors
by sauoq
in thread Perl OO and accessors
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |