Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to insert an element into an array at say position 5, so that the element at position 5 is not overwritten but shunted to position 6 and hence all later elements in the array are shunted along by one position too. This way we do not overwrite the element when we insert a new value at the specified position but make the array size bigger by one
thanks a lot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: insert element into array so that don't overwrite data at that position?
by wind (Priest) on Apr 29, 2011 at 23:08 UTC |