note
hardburn
<p>It will cost a lot of memory. Fortunately, <code>$string</code> is rarely large. And if it is large, the regex-iterator solution will probably be slow. You'll probably be better off with a <code>substr</code> solution on large strings.</p>
<div class="pmsig"><div class="pmsig-195718">
<p>----<br><em>I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.</em> <br>
-- [Schemer]</p>
<p><code>: () { :|:& };:</code></p>
<p><b>Note</b>: All code is untested, unless otherwise stated</p>
</div></div>
322751
322898