Hi Holy Ones,
I hope you can help, I'm stumped yet again.
I have an array like this:
@array1=(1,33,45,66)
and I simply want to double up every element, so it looks like this:
@newarray=(1,1,33,33,45,45,66,66)
I tried a loop using push... but no success. The numbers within the array are actually being pulled out from a text file, and the array is much larger than the example given here (if it helps).
Any ideas?
Many thanks, help much appreciated.