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)
Comment on
Re: Waiting for an event
Download
Code
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>;
[download]
only works if the data coming into the socket happens to be delimited by newlines. Not all network protocols are newline-delimited.
[reply]
[d/l]
In Section
Seekers of Perl Wisdom