Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: define a hash-value, using hash-ref and a list of keys

by janssene (Initiate)
on Oct 30, 2014 at 10:28 UTC ( [id://1105602]=note: print w/replies, xml ) Need Help??


in reply to Re^3: define a hash-value, using hash-ref and a list of keys
in thread define a hash-value, using hash-ref and a list of keys

Hi Rolf, this is what I needed... having an older perl-version,I used for my $key (@keys) { $href =  $href->{$key} = {} unless defined $href->{$key};} is this notation {} having a specific usage or name ? Anyway, many thanks for the suggestion !!!

Replies are listed 'Best First'.
Re^5: define a hash-value, using hash-ref and a list of keys
by LanX (Saint) on Oct 30, 2014 at 10:44 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-16 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found