in reply to Re: Perl action on cancellation
in thread Perl action on cancellation
This will trap Ctrl-C on Unix systems (dunno about Windows) and allow you to put the appropriate action into the END block.use sigtrap(die INT) END { ##do whatever it is you need to do }
|
|---|