in reply to Silly While Loop Problems
Time to go look at your truth tables, even after taking into account the newline.
while (lc($yn) ne "y" || lc($yn) ne "n")
| lc($yn) | lc($yn) ne "y" | lc($yn) ne "n" | lc($yn) ne "y"||lc($yn) ne "n" |
|---|---|---|---|
| y | false | true | true |
| n | true | false | true |
| * | true | true | true |
I think you mean AND, not OR.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Silly While Loop Problems
by gsus (Initiate) on Sep 30, 2011 at 17:56 UTC |