$ref{$key}{NAME} and ${$ref}{$key}{NAME} are two completely different things. But you can say that the latter is another form of arrow notation (the first arrow, because it's a dereference operator), so they are both a hash reference.
my $env = \%ENV;
print $env->{SHELL};
print ${$env}{SHELL};
print $env{SHELL}; # barks under strict, undefined otherwise
# output:
/bin/bash
/bin/bash
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
| [reply] [Watch: Dir/Any] [d/l] [select] |