out of interest, how does using a variable in a regular expression affect Perl ?. I assume Perl recompiles the pattern each time through the loop because the variable may have changed ?
So by shifting the keyword patterns out to a file am I therefore introducing more of a performance degredation ?
Obviously I can test this out but it would be good to hear others views on this.