<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'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;">'delete' 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't give me the delete 'this' 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'd like to do it without creating another array, because I like<br>'premature optimizations'</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;">