Where do you have problems with the code you've shown?
I would suggest reviewing your course materials, especially where they mention the syntax of while and if statements.
For example, perlsyn documents the following structure for a while statement:
LABEL while (EXPR) BLOCK
Maybe you can apply that to your problem?
In reply to Re: Please help
by Corion
in thread Help with While Loop
by gavin100
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |