in reply to
Puzzled over 'my'
Change it to
my $ok = grep {/Some String/} @anArray;
[download]
and you'll go back to scalar context. Using the parentheses forced the matches into array context.
Comment on
Re: Puzzled over 'my'
Download
Code
In Section
Seekers of Perl Wisdom