Bingo! Thanks Paul, you are correct. $_ is not getting loaded in the while statement.
>someone please poke me if I'm dreaming, but if you say > > while(<$new_sock>) { print $_; } > >the while(<>){} structure automatically loads $_ with whatever came out >of the <> ... IF and ONLY IF the diamond operator (including it's >internal operand, so <$new_sock> is ok) is the ONLY thing in the >condition. Try loading it explicitly. > > while(defined($_ = <$new_sock>)) { > print "Socket defined\n"; > print $_; > } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]