will return only elements of @choices exactly matching the string "foo". There's no pattern matching involved whatsoever.grep { $_ eq "foo" } @choices
In reply to Re: Looking for exact match in an array
by saintmike
in thread Looking for exact match in an array
by juo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |