<span style="font-family: courier new,monospace;">As the subject line asks...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">what I&#39;d like to do is something like</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">foreach (@array) {<br>    if (condition) {<br>        splice @array, this_entry, 1;<br>        next;<br>    }<br>    do processing on this entry;    </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><br>@array now contains a sub-set of the original<br>that I can now further process<br>

</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&#39;delete&#39; might work, but the words say delete on arrays is deprecated</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">and it still doesn&#39;t give me the delete &#39;this&#39; entry concept, because<br>it too works on an index.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">I&#39;d like to do it without creating another array, because I like<br>&#39;premature optimizations&#39;</span><span style="font-family: courier new,monospace;"> and because I think it would make the<br>

code more readable.</span>  :-)<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TIA</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Fulko</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">