in reply to regex is too long

You might want to try forming the words into an optimized regex. Also, you might want to make sure the strings are quotemeta()ed, in case they contain regex characters.
my $regex = join '|', map quotemeta($_), @strings; $regex = qr/$regex/;
As far as optimizing goes, since Perl uses NFA (not DFA), you'll get an efficiency boost:
/out|this|once|those or|about|bout/ # will work better as /th(is|ose or)|((a?)b?)out|once/
Update: you also want to put the smaller stop-words towards the beginning of the regex, if at all possible.

japhy -- Perl and Regex Hacker