in reply to 2D arrays & mo' better blues
If @input is qw( a b c d ), then this makes a 4x4 table:push @grid, [ @input ] for @input;
Except it does it with far less effort. And printing is just as easy.@grid = ( [ qw( a b c d ) ], [ qw( a b c d ) ], [ qw( a b c d ) ], [ qw( a b c d ) ], );
print "@$_\n" for @grid;
|
|---|