in reply to Re^3: Implicit assignment to $_
in thread Implicit assignment to $_

You probably ran Perl with -w then, because it's warnings that produces that error.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Replies are listed 'Best First'.
Re^5: Implicit assignment to $_
by hippo (Archbishop) on Feb 26, 2013 at 22:40 UTC

    Confirmed (with 5.14.2):

    $ cat test.pl use strict; "Test A"or"Test B"; print; $ perl test.pl $ perl -w test.pl Use of uninitialized value $_ in print at test.pl line 3.