in reply to Generate a single "or regex" from given strings
Trie optimization is a builtin since Perl 5.10, maybe you should test that too.
Cheers Rolf
( addicted to the Perl Programming Language)