Help for this page

Select Code to Download


  1. or download this
    $w1 = open(fw1,"pgm1|");
    ...
    $read_set->add($w1);
    
  2. or download this
    my $pid1 = open my $fh1, "pgm1|";
    my $pid2 = open my $fh2, "pgm2|";
    ...
    $read_set->add($fh1);
    $read_set->add($fh2);
    ...
    
  3. or download this
    close $fh1 or warn "subprocess failed: status=$?\n";