> > while (($type ne "Windows") || ($type ne "Linux")) { > Right here, you must have the full string "Windows" or "Linux"
Yes, correct. > > print "Enter TYPE of server to build. Linux or Windoze > > [linux, windows]: > > \n"; > > $type = <STDIN>; > > chomp $type; > > $type =~ tr/a-z/A-Z/; > > Here you uppercase the response, so you will have "L" or > "LINUX" but never "Linux" True, but further processing below (still inside the loop) will set the type to either Windows or Linux. Since it is set to either Linux or Windows before the loop is finished, will it not stop the loop? Maybe not stop it but when loop is run again shouldn't it recompare $type variable to Linux and to Windows? > > > if (($type eq "LINUX") || ($type eq "L")) { > > $type = "Linux"; } Set var to Linux in the above line. > > if (($type eq "WINDOWS") || ($type eq "W")) { > > $type = "Windows"; } Set var to Windows in above line. > > } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]