Think about Loose Coupling | |
PerlMonks |
Re: Moose stringification overloading isn't workingby tobyink (Canon) |
on Feb 10, 2013 at 08:54 UTC ( [id://1018036]=note: print w/replies, xml ) | Need Help?? |
You're not using something like namespace::autoclean are you? It breaks overloading. Try namespace::sweep instead.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|