in reply to Re: find a string in an array of arrays
in thread find a string in an array of arrays
but then your dot would match any character
You could do \Q...\E to quote the metacharacter.
my ( $grepresult ) = grep { $_->[0] =~ m{\Q$SearchStr\E} } @cdata;
Cheers,
JohnGG
Update: I also missed the scalar/list problem, parentheses added. lodin ++
|
|---|