Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Localizing hash keys in an AoHby tobyink (Canon) |
on Mar 17, 2013 at 00:32 UTC ( [id://1023862]=note: print w/replies, xml ) | Need Help?? |
Indeed, but you don't really need to wait for the guard to go out of scope. It's just a blessed object, so you can call $guard->DESTROY manually any time you like.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|