in reply to Hash in a Hash Issue
The answer is that what you save should be a COPY, not a reference.
If the %innerhash is only one level deep (i.e. it is shallow), you can save a copy like this:
Now, you are free to modify %innerhash, and $hash{somekey} will maintain it's original value.$hash {somekey} = {%innerhash}; # Shallow copy
IF %innerhash is more than one level deep, you will need to do a "deep copy" - search for that at this site if you need it.
My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.
|
|---|