http://www.perlmonks.org?node_id=196679


in reply to Using $foo->{'bar'} and not %$foo{'bar'}

Did you mean $$ref{foo}? %$ref{foo} is a syntax error.

It's actually the same as $ref->{foo}, they both can work on either a symbolic or hard reference.

  • Comment on Re: Using $foo->{'bar'} and not %$foo{'bar'}