Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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.


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-07-06 03:34 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 (70 votes), past polls