Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Perl Script Terminates unexpectedlyby Athanasius (Archbishop) |
on Jun 30, 2015 at 07:50 UTC ( [id://1132573]=note: print w/replies, xml ) | Need Help?? |
Hello gvbals, and welcome to the Monastery! I take it that you want a quick-and-easy way to find where a given script is terminating. Try adding this to the head of the script:
The call to Carp::confess will generate a stack trace, which should help you to locate the source of the termination. And the END block will be run even if the script encounters an exit statement. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|