If it is a simple hash then changes to %atlas won't be seen in $self->{atlas}. Now, if the values of $self->{atlas} contain references (i.e. other hashes, arrays, object, etc) then changes to those will be seen. If you need to make a deep copy (clone) of a complex datastructure, you could use dclone method is Storable.
use Storable; my $aref = dclone($self->{atlas}); my %atlas = %$aref;
Ted Young
($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)In reply to Re: Local Copy of a member variable
by TedYoung
in thread Local Copy of a member variable
by benrwebb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |