- or download this
#Before writting on the socket
$sock->autoflush(); # so output gets there right away
- or download this
#when writting $data to the socket
print $sock $data . "\015\012";
- or download this
#when done writting to the socket
close($sock);