Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Regarding Initialization and Use of Hashes

by choroba (Abbot)
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.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Regarding Initialization and Use of Hashes
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991659]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-12-25 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls