Help for this page

Select Code to Download


  1. or download this
    while ( my @ready = $select->can_read()) { 
      ...
    };
    
  2. or download this
    sleep 2; # give time to child process
    while ( my @ready = $select->can_read()) { 
      ...
    };
    
  3. or download this
    my @children = get_child_pids(); # fake
    while (@children) {
    ...
      @children = get_child_pids(); # fake
      sleep 5; # let's see if the remaining children will produce output
    };