# when a childe spawns $pm->run_on_start( sub { my ($pid,$ident)=@_; log_report("Parent Starting Child $pid Sending to $ident"); }); # when a childe finishes $pm->run_on_finish( sub { my ($pid, $exit_code, $ident, $error) = @_; log_report( "Child at $pid completed on $ident with code:$exit_code"); }); # while we wait.. $pm->run_on_wait( sub{log_report( "Waiting for children ..." );} );