more useful options | |
PerlMonks |
Re: map {} list or do {} for list?by tobyink (Canon) |
on Apr 11, 2014 at 21:11 UTC ( [id://1082021]=note: print w/replies, xml ) | Need Help?? |
If I wanted it to be fast and concise, I'd probably go with:
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|