in reply to build multidimensional array from arrays
kevsurf check out the following code:
use Data::Dumper; @one = qw(A B C D); @two = qw(E F G H); @mda=( [@one],[@two]); print Dumper(\@mda);
When run yields:
$VAR1 = [ [ 'A', 'B', 'C', 'D' ], [ 'E', 'F', 'G', 'H' ] ];
Was that what you were after?
| Peter L. Berghold -- Unix Professional Peter at Berghold dot Net | |
| Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice. | |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: build multidimensional array from arrays
by kevsurf (Acolyte) on Jan 29, 2004 at 18:40 UTC | |
by Not_a_Number (Prior) on Jan 29, 2004 at 19:10 UTC |