in reply to How to explicitly destroy an object so that all other references to it would become false?

Yes it's possible, for most reasonable uses of possible. See Scalar::Util's weaken().

This solution requires some understanding of perl's reference counting garbage collector. "destroy an object so that all other references to it would become false" is not a reasonable use, or well though out.

  • Comment on Re: How to explicitly destroy an object so that all other references to it would become false?