pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
Every now and again I run into a problem where something I do causes an external module to die in a really unhelpful way.
Is there a way to make a script print a helpful stack trace a-la confess or croak regardless of how the procress died? Would...
... make my computer blow up?$SIG{__DIE__} = sub ( croak(shift) );
Thanks!
--Pileofrogs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: croakify non-croakers?
by moritz (Cardinal) on Nov 08, 2007 at 07:36 UTC | |
|
Re: croakify non-croakers?
by shmem (Chancellor) on Nov 08, 2007 at 08:26 UTC | |
by ambrus (Abbot) on Nov 08, 2007 at 09:07 UTC |