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
In reply to Re: Silly While Loop Problems
by MidLifeXis
in thread Silly While Loop Problems
by gsus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |