Help for this page

Select Code to Download


  1. or download this
    local $/ = "\0";                         # Read up to NUL.
    while (defined(my $messg = <TSOCK>)) {
    ...
        print TSOCK "Hello server!\n";
        TSOCK->flush;
    }