Help for this page

Select Code to Download


  1. or download this
    use threads;
    
    ...
    my $t4 = async{ system '...'; };
    
    $_->join for $t1, $t2, $t3, $t4;
    
  2. or download this
    $_->join for map async( sub{ system shift; }, $_ ), 
        'command1 args',
        'command2 args',
        'command3 args',
        'command4 args';