Help for this page

Select Code to Download


  1. or download this
       my @input = 100..200;
    
    ...
          print "$_\n";
       };
    
  2. or download this
       use MCE::Loop max_workers => 8, chunk_size => 1;
    
    ...
          MCE->print("$_\n");
       } @input;
    
  3. or download this
       use MCE::Map;
       use Time::HiRes 'sleep';  # for simulating work
    ...
    
       print "@a\n";