Just adapt the solution I gave in my other post:
say join ' ', map splice( $_, 0, 3 ), \@array1, \@array2 while @array1 or @array2;If you need to access your original arrays later, make copies and destroy these instead.
In reply to Re^3: issue with print/join 2 arrays
by Not_a_Number
in thread issue with print/join 2 arrays
by juanito23
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |