in reply to Good Idiom for Matching List?

Have you thought of having a look at Jarkko's Regex::PreSuf module? It's main use is to create a regular expression from wordlists using prefix and suffix analysis, which should create a much faster regex than just joining them together.

Not sure how well it works, found it whilst trying to find something else recently so not used it myself.

Replies are listed 'Best First'.
Re: Re: Good Idiom for Matching List?
by John M. Dlugosz (Monsignor) on Dec 12, 2002 at 15:59 UTC
    My list only has three items in it, so it's not critical. My goal is to isolate the names into a simple maintainable definition at the top of the script. It's not speed critical.