Hopefully I'm in the right place. Im new to the forums and linux!
I'm looking to add a menu to my perl hangman game i have created. The menu will use user input for the desired option and then perform the operation indicated. I would like something along the lines of:
Welcome to Hangman
If you would like to continue press 1 (calls module to run hangman game)
Press 0 to exit (exits the script)
prior to writing the hangman script i did not declare which version to use so im assuming its running an older version.
Similarly i need another menu that has 3 options that open up to another menu.
For instance:
- system commands
- edit commands > opens menu with 3 options that just print something
- admin commands > opens menu with 3 options that each print something
- network commands > opens menu wtih 3 options that each print something
- games
- exit
some sort of input validation would be nice to.
Any and all help would be greatly appreciated. thank you.