in reply to A silly splicing question...
to remove the 'c' and replace it with 'foo'. Then a@last_bit = splice(@a, 2, , 'foo');
to stick the removed things back on the end.@a .= @last_bit;
I am sure there is a way to combine the two operations.
Updated: redcloud had it - set length to 0 and it automagically happens. Sigh. Where is that coffee?
|
|---|