Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^5: Looking up elements of an array in another array!by tobyink (Canon) |
on Mar 23, 2013 at 07:05 UTC ( [id://1025003]=note: print w/replies, xml ) | Need Help?? |
I'd suggest:
... because this will cope better when $a contains "special" characters such as "[" or "+".
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|