I would like to do:
$array_ref = [ 1, 2, 3];
alias @array @$array_ref;
$array[0] = 4;
# $array_ref->[0] should now be 4
In other words: I have a reference to an array, but I would like to address it as if it was a normal array.
Background
This is a for a potential extension of GNU Parallel. In GNU Parallel the user can submit a perl expression to be evaled on the internal data structures. Accessing the array of the args is cumbersome to say the least, so I would like to make it possible simply to use @arg instead.
$array_ref->[0],@$array_ref, and @{$array_ref}[0,2,4]`