but you might need use threads::shared if there are any shared variables.use threads; my $thr = async{ &download_a_file(); }; &calculate_network_bandwidth() while($thr->is_running()); $thr->join();
In reply to Re: Perl Forking : perform some action until child process dies
by rmflow
in thread Perl Forking : perform some action until child process dies
by robrt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |