> Subject: [perl #32714] Objects destroyed in the wrong order during global destruction I thought order of destruction in perl in general was undefined? At least Perltoot seems to agree with me: "Perl's notion of the right time to call a destructor is not well-defined currently, which is why your destructors should not rely on when they are called." There is also something on the subject in perlobj.pod but it doesn't say that there is a defined order. Im wondering why Perl doesn't have a counter whose value is incremented and assigned to each blessed object when they are blessed. Then in global destruction Perl could ensure that the objects are destroyed in the correct order (hmmm, would that be oldest first or newest first?). Is it just because the memory overhead is too much for the gain to be worthwhile? YvesThread Next