On Tuesday 06 Jan 2004 2:08 pm, Dan Anderson wrote: > I don't know if anybody has mentioned it yet, but check out weak > references on CPAN: > > http://search.cpan.org/~lukka/WeakRef-0.01/WeakRef.pm > > -Dan
Thanks Dan, Although, based on experience and responses from this thread I don't think that the problem will arrise ($scalars going out of scope, correctly structured DESTROY's to remove cyclic references etc), this looks to be a very effective safety net so I think I'll be using it. My idea is to keep only the %_BLOCKS as a strong ref and weaken all others. That way, I can guarantee that when I delete that ref the object will be destroyed. -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>