in reply to Re^4: Perl OO and accessors
in thread Perl OO and accessors
How do you do the same with an lvalue sub?
You return a tied value. Ugly, slow, and doable. fergal did say <q>Neither of these expose an attribute, despite how it looks.</q>
You don’t. But, that’s okay because you never have a need to.
Why then would I ever have a need to go back and avoid lvalue subs?
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl OO and accessors
by sauoq (Abbot) on Nov 29, 2005 at 04:48 UTC | |
by fergal (Chaplain) on Nov 29, 2005 at 11:42 UTC | |
by sauoq (Abbot) on Nov 29, 2005 at 13:48 UTC | |
by fergal (Chaplain) on Nov 29, 2005 at 16:04 UTC | |
by sauoq (Abbot) on Nov 29, 2005 at 22:13 UTC | |
| |
by herveus (Prior) on Nov 29, 2005 at 22:33 UTC | |
| |
by Aristotle (Chancellor) on Nov 29, 2005 at 06:21 UTC | |
|
Re^6: Perl OO and accessors
by sauoq (Abbot) on Nov 29, 2005 at 04:43 UTC |