in reply to Waiting for an event

or you can do $var=<$socket> That waits until the Socket is ready.(PM's: See this**Warning: Incredibly newbie-ish question** That means he doesn't know that a Socket is like a File)

Replies are listed 'Best First'.
Re: Re: Waiting for an event
by bikeNomad (Priest) on Jun 25, 2001 at 22:22 UTC
    But
    $var = <$socket>;
    only works if the data coming into the socket happens to be delimited by newlines. Not all network protocols are newline-delimited.