in reply to Re: Re: bareword and hash reference
in thread bareword and hash reference

Exactly. I conclude 'string -> {key}' equals '$string{key}' and is a symbolic reference, for 'string' is an at runtime determined name, and that's bad.

--
http://fruiture.de
  • Comment on Re: Re: Re: bareword and hash reference

Replies are listed 'Best First'.
Re: Re: Re: Re: bareword and hash reference
by djantzen (Priest) on Aug 22, 2002 at 14:50 UTC

    fruiture++

    Using Deparse shows that that's just what happens:

    perl -MO=Deparse scratch.pl $a{'test'} = 'very '; $a{'test'}{'this'} = 'strange'; print $a{'test'}; print $very {'this'};