in reply to Re^2: Need suggestion for selecting IPC::Open3 or backticks
in thread Need suggestion for selecting IPC::Open3 or backticks

"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