in reply to Puzzled over 'my'

This is list context.

my($ok) = grep {/Some String/} @anArray;

This is scalar context

my $ok = grep {/Some String/} @anArray;