Well, all you need to do to use the same syntax with my solution is
$table=\@matrix;
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan
| [reply] [d/l] |
True. And thanks for pointing that out, enlightening. However, I still feel like
my $matrix =[ [1,5,7],
[2,3,4],
[5,1,9],
[7,8],
[3]
] ;
feels more "aesthetically" right than setting it up with @matrix like you did above, and then $matrix = \@matrix... even if both are equivalent. | [reply] [d/l] |