Actually that sub won't work. For lvalue subs you should not use a return statement. You need something like:
sub value : lvalue { my $self = shift; $self->{value}; }
In reply to Re: Is ": lvalue" attribute usefull or something to avoid?
by tobyink
in thread Is ": lvalue" attribute usefull or something to avoid?
by TomDLux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |