Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2015-11-26 06:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls