in reply to Re: using other variables as keys to hash
in thread using other variables as keys to hash

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. --
<http://www.dave.org.uk>

Perl Training in the UK <http://www.iterative-software.com>

Replies are listed 'Best First'.
Re: Re: Re: using other variables as keys to hash
by MZSanford (Curate) on Sep 12, 2001 at 16:27 UTC
    ok, but i think "HASH ref" means the symbolic reference was referencing a hash. you were probably correct in you're first post, that symbolic references are usually not a good idea.
    enemy of the XP whores of the world
    -- MZSanford