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"
yfalsetruetrue
ntruefalsetrue
*truetruetrue

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

    Hmmmmm, don't i feel stupid :-)

    Thanks for the quick responses guys and help.