Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
(tye)Re: non-deterministic destructors?by tye (Sage) |
on Nov 10, 2001 at 00:18 UTC ( [id://124463]=note: print w/replies, xml ) | Need Help?? |
Globals ("package variables") get destroyed in a "random" order. Keep all of your objects in lexicals and this problem should go away. Though a module putting objects into globals would also be a problem. (This has been discussed here before. If anyone finds the previous threads, then post a note here and I'll do the same if I get around to searching.) - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|