Created
May 19, 2011 23:09
-
-
Save athomason/981999 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Gearman::Worker; | |
my $worker = Gearman::Worker->new; | |
$worker->job_servers('127.0.0.1:7003'); | |
$worker->register_function(test => sub { | |
return 1; | |
}); | |
$worker->work while 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment