Help for this page

Select Code to Download


  1. or download this
    foreach $task (@tasks) {
        $task->do_one_task()
    };
    
  2. or download this
    foreach $task (@tasks) {
        use POSIX ':sys_wait_h';
    ...
            exit 0;
        }
    }
    
  3. or download this
        my $child = fork();
        if ($child) {
    ...
            $task->do_one_task()
            exit 0;
        }