in reply to Problem with loops

Use a while loop instead of a for loop. Change:
for ($input eq "end")
to:
while ($input ne "end")
For Loops

Replies are listed 'Best First'.
Re^2: Problem with loops
by Anonymous Monk on Nov 26, 2011 at 01:05 UTC
    thank you that worked, I had tried that prior but I had the for and the while flipped around so thats why I reverted back to the to for's