Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 chilling in the Monastery: (7)
As of 2014-09-22 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (186 votes), past polls