|XP is just a number|
GOTO or not GOTOby jflevi (Beadle)
|on Jan 27, 2009 at 02:20 UTC||Need Help??|
jflevi has asked for the
wisdom of the Perl Monks concerning the following question:
Good evening, Wise Monks, This apprentice is stumbling on a basic question.
I have written a short program to test different types of human reaction type; at the end I want to give the user the option of running the program another time; coming from a time where computers had no screen and no keyboard, my first idea was a GOTO label.
However I learned a while ago that GOTO is not "perliticaly correct".
I could wrap the main routine in a "do while" loop but it doesn't seem very elegant either ...
Any suggestions ???
Life is tough, it's tougher when you are dumb...