in reply to Re: lvalue subs of a run-time persuasion
in thread lvalue subs of a run-time persuasion

Perl 5.6 already has them (although it's labeled "experimental"), and they do use the above syntax (minus the eval stuff, which is needed to define and compile sub code at run-time). More specifically:
sub mysub : lvalue { $myvar; }
Check out perlsub for a more thorough discussion.

Replies are listed 'Best First'.
Re: Re: Re: lvalue subs of a run-time persuasion
by extremely (Priest) on Dec 06, 2000 at 09:43 UTC
    I didn't know they had turned em on without a compile time flag. Cool. The syntax still sucks. I thought there was a raging argument on that...

    --
    $you = new YOU;
    honk() if $you->love(perl)