in reply to Reverse grep?

Look in perlfaq6, and specifically How do I efficiently match many regular expres­sions at once?. You can define them in a separate file, perhaps in a hash or an array. This file can be a module or a file that's required or done.