http://qs321.pair.com?node_id=730247

exodist has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks, I am writing a module that gets input in raw mode and interprets the special chartacters such as escape, insert, F1-F12, and control keys such as control+a-z.

Currently I have actions occur when certain keys are pressed. I want these to be overridable. For control+c I bound it like so:
'<CONTROL+C>' => sub { exit(0) };
I need to do something similar for control+z, to make it background the process. At first I tried this:
'<CONTROL+Z>' => $SIG{INT};
But it seems this is empty unless set to something new.

I need to know of a way to do this if it is possible.

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

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!