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. | |
In reply to Re: build multidimensional array from arrays
by blue_cowdawg
in thread build multidimensional array from arrays
by kevsurf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |