On Thu, 2004-01-29 at 14:17, Rob Dixon wrote:
> but /please/ go back a few steps and explain what you want you're
> trying to do. I doubt that putting characters 'A' .. 'H' into
> an array is your goal. What you're starting with and what end you
> have in mind is fundamental. Abstract as little as
Kevin Old wrote:
>
> I have:
>
> @one = qw(A B C D);
> @two = qw(E F G H);
>
> I want to build a multidimensional array from the above arrays. I want
> to put @one in the first "column" of the array. I want to put @two in
> the second "column" of the array.
>
> I want the resulting MDA to look li
On Thu, 2004-01-29 at 12:34, Jeff 'japhy' Pinyan wrote:
> On Jan 29, Kevin Old said:
>
> >@one = qw(A B C D);
> >@two = qw(E F G H);
> >
> >
> >@mda = (
> > [A][E],
>
> Do you mean [A, E]?
>
> > [B][F],
> > [C][G],
> > [D][H]
> >);
>
> If so, this is how I'd do i
On Jan 29, Kevin Old said:
>On Thu, 2004-01-29 at 12:34, Jeff 'japhy' Pinyan wrote:
>> On Jan 29, Kevin Old said:
>>
>> >@one = qw(A B C D);
>> >@two = qw(E F G H);
>
>Well, no that wasn't what I was looking for, but it's a nice piece of
>code to add to my arsenal. That basically puts the content
On Jan 29, Kevin Old said:
>@one = qw(A B C D);
>@two = qw(E F G H);
>
>
>@mda = (
> [A][E],
Do you mean [A, E]?
> [B][F],
> [C][G],
> [D][H]
>);
If so, this is how I'd do it:
@mda = map [ $one[$_], $two[$_] ], 0 .. $#one;
If you need an explanation, feel fre
Hello everyone,
I have:
@one = qw(A B C D);
@two = qw(E F G H);
I want to build a multidimensional array from the above arrays. I want
to put @one in the first "column" of the array. I want to put @two in
the second "column" of the array.
I want the resulting MDA to look like:
@mda = (