Hello Perl Monks
Could you please help me with what I am doing wrong
use Parallel::ForkManager; my $manager = new Parallel::ForkManager( 20 ); while (<LIST>){ $manager->start and next; my @array = split( /\s+/, $_ ); print "ip ? $array[1]\n"; unless ($p->ping($array[1])) {next; print "line\n"} etc... } print "flag\n"; $manager->finish(\&next); print "flag2 \n";
Everything works, but script prints out "flag" , but not "flag2". Please help me figure out how to go further. Thanks D
In reply to Strange (for me) behavior of Parallel::ForkManager by Sterh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |