in reply to Re: dynamic matrix
in thread dynamic matrix

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

Replies are listed 'Best First'.
Re^3: dynamic matrix
by tphyahoo (Vicar) on Dec 19, 2005 at 16:36 UTC
    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.