in reply to
Looking for exact match in an array
grep { $_ eq "foo" } @choices
[download]
will return only elements of @choices
exactly
matching the string "foo". There's no pattern matching involved whatsoever.
Comment on
Re: Looking for exact match in an array
Download
Code
In Section
Seekers of Perl Wisdom