qr is meant to precompile, so why should it be used in a loop?
The OP is building a parser, his grammar doesn't change in the fly.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^3: Parser Performance Question
by LanX
in thread Parser Performance Question
by songmaster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |