splice ARRAY,OFFSET,LENGTH,LIST Removes the elements designated by OFFSET and LENGTH from an array, and replaces them with the elements of LIST, if any. #### splice( @array, $_, 1 ) foreach ( @elementsToDelete );