Help for this page

Select Code to Download


  1. or download this
      while ( my $proc = <PROCS> ) {
          # if the grep filters out everything, this is a
          # zero-trip loop.
      }
    
  2. or download this
      my $found_one = 0;
      while ( my $proc = <PROCS> ) {
    ...
      } else {
          print "couldn't find $process\n";
      }