My end goal in this situation is just to be able to use arrow keys for browsing through different areas of a script. Whenever an arrow key is pressed I want it to run a new subroutine as specified. Currently I have it matching "q" for previous subroutine and "w" for next subroutine. I figured this is not as intuitive as <- ->. I am very new to perl, and it is essentially my first programming language. I will try to figure out a way to implement multiple input capturing. The entire script, with its 5 or so modules, is about 8000-9000 lines, so it will be interesting to figure out how to do that. Gosh I wish there was an easier way to do this. | [reply] |
| [reply] [d/l] |
Nope I have written it from the ground up. Sorry, I wasn't entirely clear on what you meant by end goal. It is a mix of perl and shell script, and it is built to automate tedious security patches and other fixes on CentOS Linux machines (for my job). I may look in to dispatch tables in the future, but for now goto does what I need it to. Thanks for all your help.
| [reply] |