note
hardburn
<p>One reason you wouldn't want to is that is Perl's context-sensitivity. By using ArrayList, which would be implemented as a scalar holding a referance, you're now putting things in scalar context that really should be in list context.</p>
<p>BTW--Check out the [cpan://Class::Iterator] module for doing this.</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>
309952
310011