Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Answer: Is there a way disconnect from database

by aijin (Monk)
on Jun 28, 2001 at 22:48 UTC ( #92411=categorized answer: print w/replies, xml ) Need Help??

Q&A > database programming > Is there a way disconnect from database - Answer 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and one hand claps...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-06-29 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (657 votes). Check out past polls.