Any of the GreatOnes want to show us a more elegant solution?
I'm not a GreatOne, but here's how I might have done it assuming that I know the arrays are exactly the same size:
my $n = $#array1; my @array3 = map { $array1[$_] . $array2[$n-$_] } 0..$n;
In reply to Re: Re: appending arrays
by duff
in thread appending arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |