in reply to Puzzled over 'my'

Change it to
my $ok = grep {/Some String/} @anArray;
and you'll go back to scalar context.   Using the parentheses forced the matches into array context.