in reply to Re: Socket: I don't get what is sent
in thread Socket: I don't get what is sent
$|++; # <-- Turns on automatic flusing after each write... No! That turns on automatic flushing after each write to STDOUT. Do one of the following:
Though I'm surprised that sockets don't default to being unbuffered. - tye (but my friends ca)select( ( select(SOCK), $|++ )[0] ); # or use IO::Handle; SOCK->autoflush(1);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (tye)Re: Socket: I don't get what is sent
by JaWi (Hermit) on Oct 17, 2002 at 15:34 UTC |
In Section
Seekers of Perl Wisdom