There aren't any hash references in this example, just symbolic references. Running your code under use strict gives the following error:
Can't use string ("simpsons") as a HASH ref while "strict refs" in use at ./test.pl line 11. --Perl Training in the UK <http://www.iterative-software.com>
In reply to Re: Re: using other variables as keys to hash
by davorg
in thread using other variables as keys to hash
by Ntav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |