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 ?
*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;$hashref{name} = { data1 => "moredata" };
|
|---|