Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Regarding Initialization and Use of Hashes

by aitap (Deacon)
on Sep 04, 2012 at 18:34 UTC ( #991678=note: print w/replies, xml ) Need Help??


in reply to Regarding Initialization and Use of Hashes

my $address{Bernd} = {
You don't need to explicitly declare hash entries. If you remove my, the hash entry "Bernd" will be assigned to a hash reference without a compilation error.

If you have not read perlreftut yet, I would recommend to read it. Perl data structures became clear to me after I read this perldoc page.

Sorry if my advice was wrong.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2017-08-21 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (317 votes). Check out past polls.

    Notices?