in reply to do-while loop never exits
while (1) { print "Enter an address, QUIT to exit\n"; my $test = <STDIN>; chomp ($test); print "$test\n"; if (lc ($test) eq "quit") { last; } } ## end while (1)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: do-while loop never exits
by IvyR (Novice) on Apr 19, 2011 at 13:02 UTC | |
|
Re^2: do-while loop never exits
by DrHyde (Prior) on Apr 21, 2011 at 10:06 UTC |