You want to look at sh$ perldoc -q signal - this shows you how to add entries to the SIG hash - e.g.
$SIG{INT} = sub { $Interrupted++; syswrite(STDERR, "ouch\n", 5); }
cheers
In reply to Re: Logging interrupt signals
by davis
in thread Logging interrupt signals
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |