in reply to Re^4: Looking for a cleaner regex ( trie since 5.10 ! )
in thread Looking for a cleaner regex

Especially since you can keep the alternatives inside an qw/ / or an @array and simply join "|", for the regex string.

Maintainability at its best.

See also Re: How to tokenize string by custom dictionary? (+code) for an example with a %hash .

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery