im looking to make a simple menu in perl with options. for example i have created a hangman game and want to have it start with "welcome to hangman \n"; "enter 1 to continue or 2 to exit \n"; now if the user STDIN is 1 the code will continue onto the hangman game otherwise it will exit and when the user has won or lost it will return back to this menu. Ive been working with some if, when, and while stuff but cant seem to get anything to work, some help would be greatly appreciated. im not asking for you to code this out for me but set me up with a good base with good explinations. ive scanned the internet for some examples and havent been finding much. thanks.