RE: Using socket in perl

2003-06-19 Thread LoBue, Mark
> -Original Message- > From: Xavier Ambrosioni [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2003 1:26 AM > To: [EMAIL PROTECTED] > Subject: Using socket in perl > > > Hello all, > > I'm writing a server and a client in perl. My client communica

Using socket in perl

2003-06-19 Thread Xavier Ambrosioni
Hello all, I'm writing a server and a client in perl. My client communicates with the server using sockets. I'm using IO::Socket::INET to create the sockets. My problem is that when my client close the socket, the expressions "while ($line = <$client>)" is an infinite loop and $line contains "\n";