Subject: | ->new(job_servers => $arg, assumes $arg is an array ref |
in the new function, it assumes that job_servers is an array ref.
this is not a huge drama.
->new(job_servers => '127.0.0.1');
just needs to be
->new(job_servers => ['127.0.0.1']);
Its not documented, and dies with
Can't use string ("127.0.0.1") as an ARRAY ref while "strict refs" in
use at /usr/share/perl5/Gearman/Worker.pm line 119.
ideally it would simple normalise the day with something like
$args{job_servers} = [$args{job_servers}]
unless (ref $args{job_servers});
.. code continues