Help for this page

Select Code to Download


  1. or download this
      my $var = do {
        my $temp1 = func1($a);
        my $temp2 = func2(++$a);
        $temp1 + $temp2;
      };
    
  2. or download this
      my $var = func1($a) + func2($a + 1);
    
  3. or download this
      my $var = do {
        my ($temp1, $temp2);
    ...
        $thr2->join;
        $temp1 + $temp2
      };
    
  4. or download this
      AUTOTHREADSUBEXPRS {
        $var = func1($a) + func2($a+1);
      }
    
  5. or download this
      use threadedsubexprs;
      my $var = func1($a) + func2($a+1);