- or download this
use IO::Socket qw(crlf); # now you can use CRLF constant
$|++; # non-buffered
- or download this
# in server:
print $new_sock $_, CRLF;
# in client:
print $sock "Hello there", CRLF;
- or download this
# server
use strict;
...
print $sock->getline();
close($sock);