|
|
| more useful options | |
| PerlMonks |
Re: Why Perl boolean expression sometimes treated as lvalue?by tobyink (Prior) |
| on Feb 08, 2013 at 13:28 UTC ( #1017817=note: print w/ replies, xml ) | Need Help?? |
|
Hmmm... interesting disparity. The following may be of interest...
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||