Argon::Process
use Argon::Process; my $proc = Argon::Process->new(); $proc->spawn; my $result = $proc->process($msg); $proc->kill;
Argon::Process implements external Perl processes (Argon::Workers) in a platform-independent way.
Creates a new Argon::Process. The process object is then ready to be launched using spawn().
spawn()
Optional parameter args may be passed to specify command-line arguments to the Perl interpreter.
args
Returns true if the process has been launched as is currently running.
Launches the external Perl process and waits for it to connect back. Throws an error if unable to launch the process or if the process itself does not launch correctly. Returns the PID of the newly created process.
Sends an Argon::Message to the process. The message will be processed and the results returned to the caller. This method yields to the loop then returns the resulting Argon::Message received from the child process.
Kills the process and returns once complete. If the optional second parameter is specified, this method will block execution until the process has been reaped. The default behavior is to yield and sleep until the process has been reaped.
Jeff Ober mailto:jeffober@gmail.com
BSD license
To install Argon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Argon
CPAN shell
perl -MCPAN -e shell install Argon
For more information on module installation, please visit the detailed CPAN module installation guide.