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


in reply to Remove elements from an array

Assign an empty string... $foo[1] = ();

how's that? --bibo UPDATE: no that's really wrong. ignore....

Replies are listed 'Best First'.
Re^2: Remove elements from an array
by ikegami (Patriarch) on Nov 23, 2004 at 18:04 UTC
    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".