with simple------------------------------------------ } $pm->wait_all_children; print "Connecting for insert into jobs_run: JOBNO:$mjobno\n"; my $sql4 = qq { insert into jobs_run (jobname, datein, howmany, error +mesg) values ( 'attachmailer', sysdate, $scount, 'JOBNO:$mjobno')} | +| warn "Error: $!\n"; print "preparing Query"; my $sth4 = $dbh->prepare( $sql4 ) || warn "Prepare Error: $!\n"; print "executing Query"; $sth4->execute() || warn "Execute Error: $!\n"; print "Done"; ------------------------------------------
it won't print "Hello World" or anything other command after that, but it will print "Preparing Query" which ||'s nothing. It's definately related to the ForkManager stuff, because if I comment it all out, everything works fine (except for not using the ForkManager stuff)------------------------------------------ print "Preparing Query"; print "Hello World\n"; ------------------------------------------
In reply to Re: Re: Parallel::ForkManager - doesn't run code after
by Anonymous Monk
in thread Parallel::ForkManager - doesn't run code after
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |