in reply to Is there a way disconnect from database
You should set up a signal handler.
will run the subroutine on a Ctrl-C.$SIG{INT} = \&some_subroutine;
will ignore Ctrl-C and the program will keep running.$SIG{INT} = 'IGNORE';
|
---|
In Section
Seekers of Perl Wisdom