That's a hard way to do it. Try this.( {map { $_ => 1 } @myTerms}->{"term"}
Then doing the regex comes out trivially:grep $_ eq "term", @myTerms
grep /TE(.)M/i, @myTerms
Dave.
In reply to Re: regex match in array
by dave_the_m
in thread regex match in array
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |