"perlipc: Signals" explains how to trap and handle signals.
There's quite a few examples, including $SIG{INT} which is what you want for Ctrl-C.
Make sure you read down to the caveat: "Be careful: qx(), system(), and some modules for calling external commands ..." - this also has example code.
-- Ken
In reply to Re^3: Need suggestion for selecting IPC::Open3 or backticks
by kcott
in thread Need suggestion for selecting IPC::Open3 or backticks
by techman2006
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |