Help for this page

Select Code to Download


  1. or download this
       my $sleep_count = 0;
       do {
    ...
           }
       } until defined $pid;
       # ...
    
  2. or download this
      $pid = open(KID_TO_WRITE, "|-");
      die "bailing out" if !defined $pid;
    
  3. or download this
      $fh = undef;
      $pid = eval {
    ...
          open($fh, '|-')
      };
      die 'bailing out' if !defined $pid;