in reply to Syntax for Slice of dereferenced array

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