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.
In reply to Re^2: Slow Regex - How to Optimize
by ikegami
in thread Slow Regex - How to Optimize
by noslenj123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |