Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 cooling their heels in the Monastery: (16)
As of 2014-09-17 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (81 votes), past polls