use Lexical::Alias; my( $this, $that ); alias $that, $this; # $this is now an alias for $that. #### alias @x, @y; alias %x, %y; #### use Tie::Alias; my( $this, $that ); tie $this, 'Tie::Alias', \$that; # $this is now an alias for $that.
## alias @x, @y; alias %x, %y; ##
## use Tie::Alias; my( $this, $that ); tie $this, 'Tie::Alias', \$that; # $this is now an alias for $that.