if you are just trying to access a set of nested arrays, use something like
my @parent=([1,2,3],
[7,8,9]);
print "$parent[0][1]\n"; # outputs 2
print "$parent[1][2]\n"; # outputs 9
## now to access the the info, use references
foreach my $num(@parent){
foreach my $kid(@$num){
print "$kid\n";
}
}
check out 'Learning Perl', 'Programming Perl' and the 'Perl Cookbook' for
excellent examples. also 'perldoc perlref' at your shell prompt should pull
up the perl reference info, but it is a little esoteric...
www.perldoc.com is a great source of info as well.
> >
> > #Create a multi-dimensional array
> >
> > my @parent= (@array1,
> > @array2);
> >
> > #Spit out the info in the arrays
> >
> > foreach $i ($parent($array1)) {
> > print "$parent($array1[$i]) is part of $parent($array2[$i])\n"; }
>
> Sorry, I can't figure out at all what you're trying to do here. The first
> statement does not create a multi-dimensional array.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]