Re: disjoint copy one hash to another




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]
.