in reply to Array Splicing: Need Help!

The third argument is lenght (not last to be removed as I assume you are thinking). As you set lenght into 2, so it removes two elements.

Replies are listed 'Best First'.
Re^2: Array Splicing: Need Help!
by reasonablekeith (Deacon) on May 26, 2005 at 09:15 UTC
    as can easily be discovered by typing
    perldoc -f splice splice ARRAY,OFFSET,LENGTH Removes the elements designated by OFFSET and LENGTH from an array, and replaces them with the elements of LIST, if any.
    ---
    my name's not Keith, and I'm not reasonable.