You can do either of the following:
@$r[1,2] = @$r[2,1];
Or the more explicit dereferencing way:
@{$r}[1,2] = @{$r}[2,1];
Either way should work.
His Royal Cheeziness
In reply to Re: Syntax for Slice of dereferenced array
by CheeseLord
in thread Syntax for Slice of dereferenced array
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |