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

You can use
use IO::Handle; ... CLIENT->autoflush(1); ... print CLIENT "Hello from the server \n\n"; ...
instead of
use IO::Handle; ... print CLIENT "Hello from the server \n\n"; CLIENT->flush(); ...

The first is the same as calling $|=1; with the CLIENT handle selected.

Replies are listed 'Best First'.
Re^6: Simple question regarding Bidirectional socket programming
by sajanagr (Acolyte) on Jun 16, 2010 at 06:27 UTC
    Thank you guys for putting some light on the topic. You helped me from banging my head on my desk all the day long. Thanks a ton