in reply to Re^2: Array of arrays
in thread Array of arrays
The 'ARRAY(0x7fd4bb012010)' lines are telling you that you are attempting to print a Reference to an array. So, to print the 1st array, do this:
my @first_array = @{$array1[0]}; print @first_array;
Or maybe better, to print all of the arrays:
foreach my $array_ref (@array1) { print @{$array_ref}; }
The remaining errors for 'Use of uninitialized value' are telling you that those parts of the parent array are not defined, and therefore cannot be printed (you would have to see the internal of perlfunc's print for the explanation behind the concatenation part...).
David
|
|---|