in reply to Re: Shallow vs deep copy (Was Re^3: hash ref mind blow)
in thread hash ref mind blow
local our %copy; *copy = \%hash;
should be
our %copy; local *copy = \%hash;
Or if you prefer,
local *copy = \%hash; our %copy;
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.
I want to know what package does those hash textgraphs you posted.
Notepad.
|
|---|