in reply to Looking for exact match in an array

grep { $_ eq "foo" } @choices
will return only elements of @choices exactly matching the string "foo". There's no pattern matching involved whatsoever.