![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Re: Is there any way to connect two sockets together?by Fastolfe (Vicar) |
on Jan 11, 2001 at 21:04 UTC ( #51160=note: print w/replies, xml ) | Need Help?? |
Note that IO::Socket file handles are by default set with 'autoflush' enabled, so it's not necessary to do that here, especially not by using the select/$|=1/select method. We are dealing with objects, you know. :) $client->autoflush(1) In addition, you might be interested in the 'can_read' method of IO::Select instead of calling select directly. This is a little "friendlier":
In Section
Seekers of Perl Wisdom
|
|