http://qs321.pair.com?node_id=206049


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:

select( ( select(SOCK), $|++ )[0] ); # or use IO::Handle; SOCK->autoflush(1);
Though I'm surprised that sockets don't default to being unbuffered.

        - tye (but my friends ca)