my @table = ([1, 2, 3], [4, 5, 6]); #### for my $row (@table) { for my $cell (@$row) { printf "%4d", $cell; } print "\n"; } #### print "@$_\n" for @table;
## for my $row (@table) { for my $cell (@$row) { printf "%4d", $cell; } print "\n"; } ##
## print "@$_\n" for @table;