Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Array: inserting what isn't thereby arthas (Hermit) |
on May 30, 2003 at 14:11 UTC ( [id://261852]=note: print w/replies, xml ) | Need Help?? |
Hi!
The following code creates a second array which is the original one completed with the missing elements. You can then copy it back over the old one. Otherwise, you can try to work something out with splice() to work directly on the original array. Michele.
In Section
Seekers of Perl Wisdom
|
|