[CDBI] Class::DBI and DESTROY

Perrin Harkins perrin at elem.com
Thu Nov 10 15:57:39 GMT 2005


On Thu, 2005-11-10 at 15:44 +0000, Steven Mackenzie wrote:
> What the problem feels like now is that row objects are being cloned in
> some circunstances, and then the clones are being destroyed.

Oh, of course that's it.  The fact that you got multiple refaddr values
for the same key is a clue here.

> Any idea what could cause multiple objects to represent the same row?

All kinds of things.  You might not be using the object index feature.
Your perl might not be compiled with weak reference support.  You might
be using objects after a create() call, which will not put them in the
object index.

Why can't you just use refaddr and have duplicates?  Or put the stuff in
$self->{'__super_secret_special_key'}?

- Perrin





More information about the ClassDBI mailing list