remiah has asked for the wisdom of the Perl Monks concerning the following question:
I am glad with any advice.use strict; use warnings; #this doesn't work #$ENV{PERL_SIGNALS} = "unsafe"; local $SIG{INT} =sub { print "in SIGINT ...exitting\n"; #here I want disconnect from database; exit; }; while (1){ print "in while loop\n"; sleep 30; #this is what I can do best so far... #sleep 3 for (0 .. 10); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: ctrl + c on Win32 (signal handling)
by BrowserUk (Patriarch) on Aug 26, 2011 at 13:55 UTC | |
by remiah (Hermit) on Aug 26, 2011 at 14:35 UTC | |
by remiah (Hermit) on Aug 26, 2011 at 21:06 UTC | |
Re: ctrl + c on Win32 (signal handling)
by locked_user sundialsvc4 (Abbot) on Aug 26, 2011 at 13:37 UTC | |
by remiah (Hermit) on Aug 26, 2011 at 14:16 UTC |