in reply to Re: How do I completely remove an element from an array?
in thread How do I completely remove an element from an array?

The OP didn't saying anything about a "controlling loop" - that is something you have injected.

In general, using splice to remove multiple elements from an array can be easily managed by starting at the end and working to the "left".

for my $i ( reverse( 0 .. $#array ) ) { if ( $array[$i] =~ /criteria/ ) { splice @array, $i, 1; } }
Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.