in reply to Re: looping over class instances
in thread looping over class instances

push @_instances, $self;

Because you're saving a reference to the object, the object will never get DESTROYed, which may not be what you want.

You may want to have a look at Scalar::Util's weaken() function, which allows you to save references without interfering with the lifetime of objects.

Liz