Keep It Simple, Stupid | |
PerlMonks |
Re: Slow Regex - How to Optimizeby dave_the_m (Monsignor) |
on Aug 30, 2005 at 21:50 UTC ( [id://487961]=note: print w/replies, xml ) | Need Help?? |
You code causes the regex to be recompiled each time round the inner loop.
A slight rearrangement should improve things:
Dave.
In Section
Seekers of Perl Wisdom
|
|