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 free to ask.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to