for my $host (@hosts) { $pm->start($host) and next; exec(@some_command); }