in reply to Help with While Loop

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?

Replies are listed 'Best First'.
Re^2: Help with While Loop
by gavin100 (Initiate) on Sep 14, 2015 at 12:48 UTC

    Thank you