Syntactic Confectionery Delight | |
PerlMonks |
Re: Is there a simple syntax to logically slice a hash?by tobyink (Canon) |
on Feb 21, 2013 at 15:42 UTC ( [id://1019966]=note: print w/replies, xml ) | Need Help?? |
Something like this?
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|