in reply to Re^4: Carping in DESTROY.
in thread Carping in DESTROY.

croak does something with caller(). DESTROY doesn't have a caller() (that croak recognises). If you do a sub or eval that does provide a caller() that croak recognises and so does the right thing.

Replies are listed 'Best First'.
Re^6: Carping in DESTROY.
by eff_i_g (Curate) on Oct 25, 2006 at 14:27 UTC
    Ah ha! Thank you very much!