in reply to
killing perl scripts
For Ctrl^C or kill -INT, use a signal handler:
$SIG{INT} = sub { $dbh->disconnect if $dbh };
[download]
AFAIK, nothing you can do about kill -9; perhaps you oughtn't to be using -9 habitually?
Comment on
Re: killing perl scripts
Download
Code
In Section
Seekers of Perl Wisdom