SkyBlueshoes wrote:
I've tried to catch control-c using:
$SIG{QUIT} = \&got_sig_quit;
Hi,
I'm not sure why this is, as I'm not any good with signals in Unix, but I've
learned somewhere to use the signal INT in stead for catching ctrl+c
presses. Seems to work for me at least. Try the following:
use strict; use warnings;
$SIG{INT} = sub { print "Ctrl+c\n" };
local $_ = <>; # Opportunity for pressing ctrl+c.
--
With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED])
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs