http://qs1969.pair.com?node_id=409949


in reply to Re: Remove elements from an array
in thread Remove elements from an array

That doesn't remove any elements, it just undefines an element. (splice(@foo, $i, 1) removes element $i.) Also, you didn't address finding the elements that don't "contain a certain string".