|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re^2: Shallow vs deep copy (Was Re^3: hash ref mind blow)by ikegami (Patriarch) |
| on Sep 25, 2008 at 21:40 UTC ( [id://713753]=note: print w/replies, xml ) | Need Help?? |
|
should be
Or if you prefer,
What's the point of localizing %copy? Depending on whether you do it before or after the aliasing, you either localize a variable you never use, or you localize %hash. But you do modify *copy, so you should localize that.
Notepad.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||