are derefencing the array references, and making copies of them. You are then in turn modifying the local copy of the array.my @arr1 = @{$r1}; my @arr2 = @{$r2};
should do the trick.$r2->[1] = "q";
In reply to Re: Array references inside a subroutine
by tcf22
in thread Array references inside a subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |