Build multidimensional array from arrays
From: Kevin Old (kold_at_kold.homelinux.com)
Date: 01/29/04
- Next message: Steve Grazzini: "Re: What is eval?"
- Previous message: Gautam Chaurasia: "how to use output of one class into another class."
- Next in thread: Jeff 'Japhy' Pinyan: "Re: Build multidimensional array from arrays"
- Reply: Jeff 'Japhy' Pinyan: "Re: Build multidimensional array from arrays"
- Reply: Rob Dixon: "Re: Build multidimensional array from arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org Date: Thu, 29 Jan 2004 11:46:10 -0500
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 = (
[A][E],
[B][F],
[C][G],
[D][H]
);
Any ideas? Sorry if this is not clear.
Kevin
-- Kevin Old <kold@kold.homelinux.com>
- Next message: Steve Grazzini: "Re: What is eval?"
- Previous message: Gautam Chaurasia: "how to use output of one class into another class."
- Next in thread: Jeff 'Japhy' Pinyan: "Re: Build multidimensional array from arrays"
- Reply: Jeff 'Japhy' Pinyan: "Re: Build multidimensional array from arrays"
- Reply: Rob Dixon: "Re: Build multidimensional array from arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|