Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Adding additional values to a hash of an hash ?

by Theseus (Pilgrim)
on Nov 12, 2002 at 20:24 UTC ( [id://212396]=note: print w/replies, xml ) Need Help??


in reply to Adding additional values to a hash of an hash ?

If you have the hash, and you're only trying to add values to it whenever necessary(not merge it with another hash), you can access it just like this:
$hash{'one'}{'key2'} = "value2";
This sets the key "key2" in the second(embedded) hash to "value2".

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2024-04-18 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found