Im programming in Perl, can I replace an element in an array with two new elements?

timd718

New member
For example, if I had the array @values=(1,2,3,4) is it possible that I replace the 2nd element with two new elements of 5 and 6; so @values would now equal (1,5,6,3,4)? And I don't care which number element the 5 and 6 take.
 
Back
Top