in reply to Re: Hash as Hash Value
in thread Hash as Hash Value
If $hashOfUsers is a hashref and you want to access that, you want the syntax $hashOfUsers->{$someKey}{UID}. Perl can't automatically know to deference $hashOfUsers because then $hashOfUsers{$someKey} would be ambiguous in the case where you had both a hash and a scalar named hashOfUsers. It can automatically deference the second bracket since the syntax is unambiguous.
|
|---|