|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Logging Singletonby tobyink (Prior) |
| on Feb 18, 2013 at 16:51 UTC ( #1019366=note: print w/ replies, xml ) | Need Help?? |
|
It's probably overkill. You could do this...
Or even this...
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||