in reply to Get the current function used to handle control+z

Signals are sent using kill.

'<CONTROL+Z>' => sub { kill INT => $$ }

PS — Save yourself and ourselves trouble. Use <c>...</c> around code and data blocks.

Replies are listed 'Best First'.
Re^2: Get the current function used to handle control+z
by exodist (Monk) on Dec 14, 2008 at 05:08 UTC
    Thanks, however that seems to terminate the process, I want it to background the process. Maybe INT was not what I was looking for?

    --------------------------------------

    I would rather take 30 minutes to re-invent the wheel then take 30 days to learn how to use someone else's. Before pestering me about my re-invention prepare to defend yourself with a way of learning how to use the wheel in less time than it takes for me to make one, one that I might add is specialized to my specific task!