Hello Monks! I am asking for your infinite wisdom again.

I am working in a program where the user selects some options. Based in the selections he gets some output and based in that output he enters some data, and based in the data another output appears and he can select an option and so on...

What I am doing is basically a do-while loop. At the end of the loop, some if-else conditions are processed, so the loop executes again or another do-while loop is executed.

Do you know of some procedure or something like a pragma to build interactive CLI programms?

Any help is appreciated!


In reply to Interactive program by oldwarrior32

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":