No such thing as a small change | |
PerlMonks |
Re^2: Is ": lvalue" attribute usefull or something to avoid?by tobyink (Canon) |
on Feb 12, 2014 at 12:14 UTC ( [id://1074618]=note: print w/replies, xml ) | Need Help?? |
Other class builders that support lvalues:
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|