in reply to Re: Trying to understand aliasing (*var)in thread Trying to understand aliasing (*var)
It's called a typeglob. To get your example to work you will need a use vars qw($z) or specify the full package of the variable: