grep $term2=~/\Q$_\E/, @myTerms; [download]
In reply to Re: "reverse" array match by Roy Johnson in thread "reverse" array match by rsiedl