Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Regarding Initialization and Use of Hashes

by choroba (Bishop)
on Sep 04, 2012 at 17:07 UTC ( #991659=note: print w/replies, xml ) Need Help??


in reply to Regarding Initialization and Use of Hashes

Yes, $address->{Name} dereferences the hash reference and then searches for the Name key. For a normal hash (%address), you should use
print $address{Name}, "\n";
See Perl Data Types and Perl Data Structures Cookbook for details.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991659]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2017-12-13 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (345 votes). Check out past polls.

    Notices?