in reply to Logging interrupt signals
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); } [download]
cheers