in reply to
Forcing dereference
Yes, since you copy copy only a reference to something 2. Not the data. You want a deepcopy or clone. There are several modules that can do this.
Clone::PP
,
Storable
,
Data::Dumper
and lots more.
Boris
Comment on
Re: Forcing dereference
In Section
Seekers of Perl Wisdom