|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: 2d arrayby BillKSmith (Friar) |
| on Jan 04, 2013 at 04:34 UTC ( #1011550=note: print w/ replies, xml ) | Need Help?? |
|
"Dynamic" is not a perl data type. I think that you mean that you want changes in the row arrays to appear in the matrix and changes made in the matrix to appear in corresponding row array. The code you posted does do this. If you wanted to initalize the matrix with the current value of the rows, but allow them to modified independently, you would use the [] operator rather than the \ operator.
Bill
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||