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

RE: Answer: how do I use a hash of hashes reference in a function ?

by Fastolfe (Vicar)
on Sep 22, 2000 at 23:45 UTC ( [id://33689]=note: print w/replies, xml ) Need Help??


in reply to Re: how do I use a hash of hashes reference in a function ?
in thread how do I use a hash of hashes reference in a function ?

Just for clarification (for the original poster), your syntax:
$hashref{name} = { data1 => "moredata" };
*replaces* the reference in $hashref{name} with a new one, composed of your data1 => "moredata" hash. That's why it won't work. merlyn is correct in that if you wish to modify the hash referenced by $hashref{name} you don't do that by setting $hashref{name}, you modify it as if it were a hash: $hashref{key}{subkey} = $xyz;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found