in reply to Re^2: Using pos() inside given/when
in thread Using pos() inside given/when

for and given both use $_. The difference is that for uses our $_ and aliases it to the item, while given copies (though I believe it's a cheap optimized copy) the item to my $_.

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