Help for this page

Select Code to Download


  1. or download this
    myprog1 &
    myprog2 &
    wait
    
  2. or download this
      my $pid1 = open(PIPE1, "myprog1|");
      my $pid2 = open(PIPE2, "myprog2|");
    ...
      my $output2 = <PIPE2>;  # this works as well
      close PIPE1;  # this fails!
      close PIPE2;  # this fails as well!