"Randy J. Ray" wrote:

> In my Perl-RPM package, it's been recently pointed out to me that the
> object destructors aren't getting called when the object undef'd, but
> rather at the end of the script (well, the bug report focused on a
> different problem, but this is the source of it).
> 
> I've done testing and confirmed this. My guess is that something in the
> nature of the self-tying object is causing the ref-count to be higher, and
> I'm not successful in getting it sufficiently down. My TIEHASH method is
> pure XS, and the new method looks like this:

Self-ties are badly broken, and in the development version of perl they
are disallowed - see the recent p5p traffic for details.  Use a normal
tie if at all possible - the overhead is only a single extra HV.

-- 
Alan Burlison

Reply via email to