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.
Comment on
Re^5: Carping in DESTROY.
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!
[reply]
In Section
Seekers of Perl Wisdom