http://www.perlmonks.org?node_id=488020


in reply to Re: Slow Regex - How to Optimize
in thread Slow Regex - How to Optimize

Two notes:

1) borisz's solution should be even faster on Perl 5.10 with due to a new regexp engine optimization.

2) My solution and anonymonk's assume that %SUBS keys aren't regexps.