good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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). -- In reply to Re^2: Inserting an element into an array after a certain element
by halley
|
|