using an array to hold the row, or:my @another = @{$arr[1]}; for ( $i = 0; $i < 3; $i++ ) { print "another[$i] = $another[$i]\n"; }
using a ref to the row. You should also consider use strict;, BTW...my $another = $arr[1]; for ( $i = 0; $i < 3; $i++ ) { print "another[$i] = $another->[$i]\n"; }
In reply to Re^2: Multidimensional Arrays
by chb
in thread Multidimensional Arrays
by CharlesClarkson
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |