Acme-Spork
view release on metacpan or search on metacpan
lib/Acme/Spork.pm view on Meta::CPAN
=head1 NAME
Acme::Spork - Perl extension for spork()ing in your script
=head1 SYNOPSIS
use Acme::Spork;
my $spork_pid = spork(\&long_running_code, @ARGV)
or die "Could not fork for spork: $!";
print "Long running code has been started as PID $spork_pid, bye!\n";
=head1 DESCRIPTION
A spork in the plastic sense is a fork combined with a spoon. In programming I've come to call a spork() a fork() that does more than just a fork.
I use it to describe when you want to fork() to run some long running code but immediately return to the main program instead of waiting for it.
=head1 spork()
The first argument is a code ref that gets executed and any other args are passed to the call to the code ref.
( run in 0.239 second using v1.01-cache-2.11-cpan-0d8aa00de5b )