for (my $x = 0; $x <= $#AoA; $x++) { print "@{ $AoA[$x] }\n"; }
Consider replacing the above with this:
print "@$_\n" for @AoA;
Where, each time through the loop, $_ is an array reference (like to $AoA[$x] in your code); and then it is dereferenced with @$_.
In reply to Re^2: Help to assign a 2D-Array to another while excluding specific rows.
by hbm
in thread Help to assign a 2D-Array to another while excluding specific rows.
by mmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |