Help for this page
use Parallel::ForkManager qw( ); my $pm = Parallel::ForkManager->new(int(@files/4)); ... $pm->finish; # Terminates the child process }
#!/usr/bin/perl use Net::IP; use LWP::UserAgent; ... foreach my $pid (@Pids) { waitpid($pid, 0) } }