sub foo { my ($aref) = @_; alias @$aref => my @ary; ... do something with @ary }