I believe the standard solution is to use Storable <a href="http://search.cpan.org/perldoc?Storable">http://search.cpan.org/perldoc?Storable</a> (I think it&#39;s a standard module?)<div><br></div><div>Look at freeze() and thaw() or dclone() in the perldoc there.<br>
<br><div class="gmail_quote">On Mon, Feb 28, 2011 at 4:41 PM, Robert Pike <span dir="ltr">&lt;<a href="mailto:roberthpike@yahoo.com">roberthpike@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a complex hash that I want to make a &quot;copy&quot; of before manipulating the original hash.<br>
Here is what I have :<br>
my %tmpData = %{$aDATA};<br>
If I make changes to %{%aDATA} the changes are reflected in %tmpData. How can I copy the hash without having to loop through each element and assigning to the backup copy? Thanks.<br>
<br>
<br>
_______________________________________________<br>
kw-pm mailing list<br>
<a href="mailto:kw-pm@pm.org">kw-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/kw-pm" target="_blank">http://mail.pm.org/mailman/listinfo/kw-pm</a><br>
</blockquote></div><br></div>