Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regarding Initialization and Use of Hashes

by choroba (Canon)
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 pondering the Monastery: (7)
As of 2015-07-29 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls