in reply to Regarding Initialization and Use of Hashes

%address->{Name} should be $address{Name} in your second example.

Your first example creates a hash reference, the second creates a hash. $address is about equal to \%address.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: Regarding Initialization and Use of Hashes
by Anonymous Monk on Sep 04, 2012 at 17:51 UTC
    Specifically, the braces around the hash contents in the first assignment return a hash reference. The parentheses in the second assignment give the context of a list, which will be interpreted as key-value pairs when assigned to a hash.
Re^2: Regarding Initialization and Use of Hashes
by Zaemz (Initiate) on Sep 04, 2012 at 17:07 UTC
    Ahh, alrighty. That's what I was thinking. I just needed someone to solidify it for me.