Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Answer: Is there a way disconnect from database

( #92411=categorized answer: print w/ replies, xml ) Need Help??

Q&A > database programming > Is there a way disconnect from database contributed by aijin

You should set up a signal handler.

$SIG{INT} = \&some_subroutine;
will run the subroutine on a Ctrl-C.

$SIG{INT} = 'IGNORE';
will ignore Ctrl-C and the program will keep running.

Comment on Answer: Is there a way disconnect from database
Select or Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2015-05-05 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (116 votes), past polls