in reply to Re: Inserting an element into an array after a certain element
in thread Inserting an element into an array after a certain element

There's no point in your returning the array; you're modifying it in-place. You just want to indicate success or failure.

Agreed, but return the value of $first+1 to indicate that it was successful, and it may be of use to some caller (undef otherwise).

--
[ e d @ h a l l e y . c c ]