This module was the result of a discussion in comp.lang.perl.misc.require Tie::OneOff; package cool; sub name : lvalue { my $self = shift; +Tie::OneOff->lvalue({ STORE => sub { my $val = shift; # Do whatever $self->{NAME} = $val; }, FETCH => sub { $self->{NAME}; }, }); }
In reply to Re: Extending LValuable Subs with Tied Variables
by nobull
in thread Extending LValuable Subs with Tied Variables
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |