NAME
Win32/ProcFarm/Child.pl - procedural support code for child processes in the Win32-ProcFarm system
SYNOPSIS
require 'Win32/ProcFarm/Child.pl';
&init;
while(1) {
&main_loop;
}
sub child_sub {
my(@params) = @_;
#do some useful work that may take a while
return (@return_values);
}
DESCRIPTION
Installation instructions
This installs with MakeMaker as part of Win32::ProcFarm.
To install via MakeMaker, it's the usual procedure - download from CPAN, extract, type "perl Makefile.PL", "nmake" then "nmake install". Don't do an "nmake test" because the I haven't written a test suite yet.
UTILIZATION
Simple include the top 6 lines of code in a Perl script and define a bunch of subroutines. Don't use die in the subroutines.