in reply to
Problem with loops
Use a while loop instead of a for loop. Change:
for ($input eq "end")
[download]
to:
while ($input ne "end")
[download]
For Loops
Comment on
Re: Problem with loops
Select
or
Download
Code
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
[reply]
In Section
Seekers of Perl Wisdom