> no idea if that is correct. Is there something missing, how does $_ > get assigned the input from $new_sock? Thanks. > > while(defined(<$new_sock>)) { > print "Socket defined\n"; > print $_; > }
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 $_; } __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]