- or download this
$sock->send( "$msg\n" ); # possibly " $msg\r\n "
# or send a blank line
$sock->send( "\n" );
- or download this
while(my $len = sysread( $sock, my $buffer, 1) > 0) { print "$buffer\
+n"; }
- or download this
#!/usr/bin/perl
use warnings;
...
print "$incoming_data\n";
}
}