http://www.perlmonks.org?node_id=1008451

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

I want to make a keyboard interactive application which listens to the key-strokes and calls a subroutine accordingly.

e.g. when this application is running (in listening mode), and without stopping it if i press "AB<Enter>" it should run a sub routine AB_SUB and similarly with other keystrokes.

I don't know where to start with. Can anyone help me starting that.