in reply to Running a Perl Code in different Processes

Display? Do you mean print? You would rewrite
$pm->run_on_finish(sub { my ($pid, $exit_code, $ident) = @_; # print STDERR "database $ident done = exit $exit_code \n"; print "something something $ident ...\n"; });
Hmm, it looks like that is a chunk of DBWIZ::Search::Parasearch (Bundle::DBWIZ), a SOAP server for some kind of CGI/SOAP/AJAX search program.

I don't see how you can accomplish what you want without rewriting the client as well as the server, which is why you're probably better off contacting DBWIZ developers for help.

Replies are listed 'Best First'.
Re^2: Running a Perl Code in different Processes
by Anonymous Monk on Oct 15, 2008 at 11:07 UTC
    Yes..You are right..I have also tried parallel::SubFork::Task and it works. But have you tried DBWIZ??? See the problem with DBWIZ is that it waits for all the forked process get finished and then only create the result sets.
    What I want each search module returns results as soon as it is completed, Instead of waiting for searches to complete.