in reply to Extending LValuable Subs with Tied Variables

Maybe I can interest you in my Tie::OneOff module.
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}; }, }); }
This module was the result of a discussion in comp.lang.perl.misc.

Replies are listed 'Best First'.
Re^2: Extending LValuable Subs with Tied Variables
by husker (Chaplain) on Jun 24, 2004 at 20:49 UTC
    Impressive.

    Usually, my code acts like I used Tie::OneOn.