in reply to Re^4: Simple question regarding Bidirectional socket programming
in thread Simple question regarding Bidirectional socket programming

Setting $| applies to the "selected" file handle, which by default is STDOUT. In theory, you could use select (the one argument variant) to have it apply to any other handle (see the example in the docs), but personally, I find the IO::Handle API less cumbersome to use.