in reply to issue with print/join 2 arrays
use 5.010; my @array1 = ( 1, 2, 3, 1, 2, 3, 1, 2, 3 ); my @array2 = qw( blue white yellow blue white yellow blue white yellow + ); say join ' ', map splice( $_, 0, 3 ), \@array1, \@array2 while @array1 +;
But beware, this is destructive to both arrays.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: issue with print/join 2 arrays
by Laurent_R (Canon) on Apr 29, 2014 at 21:18 UTC | |
by Bloodnok (Vicar) on Apr 30, 2014 at 09:27 UTC | |
|
Re^2: issue with print/join 2 arrays
by juanito23 (Novice) on Apr 30, 2014 at 09:19 UTC | |
by choroba (Cardinal) on Apr 30, 2014 at 09:21 UTC | |
by Anonymous Monk on Apr 30, 2014 at 09:20 UTC |