Assume you have a hash where one entry has a question, the list of possible answers, and the list of hash keys associated with those answers. Your loop above becomes much simpler.
In reply to Re: General pattern for interactive text-mode script?
by apl
in thread General pattern for interactive text-mode script?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |