in reply to Destructor Level

IIRC, PERL_DESTRUCTOR_LEVEL is a #define that sets how many passes perl makes at trying to destroy things in order when the interpreter ends normaly, before destroying things out of order (or just killing them -- I don't recall which).

Strangely, google and perldoc.com don't show any hits for PERL_DESTRUCTOR_LEVEL -- try greping the perl source for it, and reading nearby comments.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re: Re: Destructor Level
by sauoq (Abbot) on Sep 14, 2002 at 17:41 UTC

    Actually, I grep'd for it in both 5.8 and 5.6.1 sources before I answered. No hits. It seems the reason for that is that the define in question is PERL_DESTRUCT_LEVEL rather than PERL_DESTRUCTOR_LEVEL. I should have been a little more general with my grep the first time, I suppose.

    -sauoq
    "My two cents aren't worth a dime.";