in reply to Re: Pattern matching in perlin thread Pattern matching in perl
Further to choroba's post: See haukex's excellent article Building Regex Alternations Dynamically for more on this technique.
Give a man a fish: <%-{-{-{-<