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