Andrea Holstein wrote:
>
> TMTOWTDI:
>
> @joined_array = map { [ @$array1[$_], @$array2[$_] ] } (0..$#array1);
>
Please excuse my little bugs:
I wrote a little script that helps to understand:
Hallo!
use strict;
my $array1 = [
[11,12],
[21,22
[EMAIL PROTECTED] wrote:
>
> Friends,
>
> I have two, two-dimensional array references, and I need to join the rows of
> each array.
>
> $array1 = [
> [11,12],
> [21,22],
> [31,32]
> ];
> and
> $array2 = [
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 14, 2001 2:21 PM
> To: [EMAIL PROTECTED]
> Subject: Array References - Concatenation
>
>
> Friends,
>
> I have two, two-dimensional array references, and
I guess you could do
for (0..$#{ $array1 }) {
push( @{ $array1->[$_] }, @{ $array2->[$_] } );
}
I'm not sure if that is any clearer or not.
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 11/14/2001 1:21 PM
Subject: Array References - Concatenation
Friends,
I have two, two-dimensional array references, and I need to join the rows of
each array.
$array1 = [
[11,12],
[21,22],
[31,32]
];
and
$array2 = [
[18,19],