hello,
I'm tring to assign 2-dim array to another array with the following code:
@tmpArr = @originalArr;
The unclear behaviour has been detected with this code:
print "here: @{$originalArr[1]}\n";
${$tmpArr[1]}[0] = 111;
print "here: @{$originalArr[1]}\n";
The originalArr value in cell [1][0] has been changed to "111". why? I've changed the tmpArr!
Thanks a lot.
I'm tring to assign 2-dim array to another array with the following code:
@tmpArr = @originalArr;
The unclear behaviour has been detected with this code:
print "here: @{$originalArr[1]}\n";
${$tmpArr[1]}[0] = 111;
print "here: @{$originalArr[1]}\n";
The originalArr value in cell [1][0] has been changed to "111". why? I've changed the tmpArr!
Thanks a lot.