Re: disjoint copy one hash to another
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Tue, 27 May 2008 11:47:17 +0100
Quoth "ram@xxxxxxxxxxxx" <ramprasad.ap@xxxxxxxxx>:
When I create a copy of a hash array, the operation on the copy hash
seems to affect the original hash
( when the values are reference elements )
How do I avoid this ?
use Clone; # or one of the Clone::* alternatives
Ben
--
"If a book is worth reading when you are six, * ben@xxxxxxxxxxxx
it is worth reading when you are sixty." [C.S.Lewis]
.
- References:
- disjoint copy one hash to another
- From: ram@xxxxxxxxxxxx
- disjoint copy one hash to another
- Prev by Date: Re: disjoint copy one hash to another
- Next by Date: Re: Consolidating a list of networks in Perl
- Previous by thread: Re: disjoint copy one hash to another
- Index(es):
Relevant Pages
|