Help for this page

Select Code to Download


  1. or download this
       my $pid = open(PIP, "|-");# open to write
       if ( !$pid ) {   # I'm the child
    ...
             print PIP "hmm, No. ",++$n,"\n"; # kid ??
             print "hmm, No. $n\n"; sleep 1;#control -> ok!
          }
    
  2. or download this
    sub sendToClient {
       my $SOC = ( shift );
    ...
          }
       }
    }