Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Regarding Initialization and Use of Hashes

by choroba (Chancellor)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2016-09-27 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (506 votes). Check out past polls.