in reply to Re: accessing element of array of arrays
in thread accessing element of array of arrays
This prints outperl -e '$A[1][1] = 33; $B[5][2] = $A[1][1]; $A[1][1] = 9; print "A = +$A[1][1], B = $B[5][2]\n";'
which is exactly what (I think) you meant, and which certainly seems to be the behaviour desired by the original poster.A = 9, B = 33
UPDATED (twice) -- I flipped the values of A and B (though I could have sworn I'd cut-and-pasted from the shell), and fixed a mark-up error.
|
|---|