note
Crian
<p>The (or one) problem is, that you have a variable in your regular expression, what is not neccessary in this case. This slows things always down.</p>
<p>Whats about using <tt>qr//</tt> to compile the expression or just putting the pattern into the RE directly?</p>
<code>while ($target_data=~m/(<[^>]{1,300}>)/gi)</code>
<p>(You don't have to escape <tt><</tt> and <tt>></tt> btw.)</p>
413770
413770