http://qs321.pair.com?node_id=1074581

TomDLux has asked for the wisdom of the Perl Monks concerning the following question:

I'm watching Steve Baker's Perl Attributes presentation in Phoenix. He mentions the predefined attribute 'lvalue', which is an alternative to passing an assignment value as a function argument. In a package definition ....

sub value : lvalue { my $self = shift; return $self->{value} } .... $obj->value() = 42; # compare with boring assignment ... $obj->value(42)

Is lvalue useful? are people using it? or is it just a dud?

As Occam said: Entia non sunt multiplicanda praeter necessitatem.