Win32/ProcFarm/Child.pl - procedural support code for child processes in the Win32-ProcFarm system
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); }
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.
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.
To install Win32::ProcFarm::Port, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::ProcFarm::Port
CPAN shell
perl -MCPAN -e shell install Win32::ProcFarm::Port
For more information on module installation, please visit the detailed CPAN module installation guide.