Help for this page

Select Code to Download


  1. or download this
        while ( $line = <$sock> ) {
            push @output, $line;
        }
        print $sock "BYE\n";
    
  2. or download this
    # In the server script
    sub process {
    ...
        }
        print $sock "BYE\n";
    }