"be consistent" | |
PerlMonks |
Re^3: Why doesn't "my ($x) = @);" generate a syntax error?by tobyink (Canon) |
on Jun 13, 2013 at 23:31 UTC ( [id://1038863]=note: print w/replies, xml ) | Need Help?? |
$[, @[ and %[ work (or at least they do in 5.18.0). If ${, @{ and %{ were to work, that would break dereferencing.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|