in reply to Search Term Highlighting

If you have an array of search terms, you can highlight any one of them with:
$re = join "|", map {quotemeta} @term;
$results = s{($re)}{$1}ig;
That's just a simple extension of sean's code. If your search terms are regexps and not plain strings, then do without the mapping of quotemeta.