in reply to Re: Re: testing against an array
in thread testing against an array
Even though the person below me already mentioned this, I felt it needed point out again: You can use any expression with grep, not just a regular expression, so if your testing for equality, use the equality test operator, don't try to coerce a regex in to pretending to be one.
if( grep $test eq $_, @array )
| A reply falls below the community's threshold of quality. You may see it by logging in. |