Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Gearman CPAN distribution.

Report information
The Basics
Id: 63110
Status: resolved
Priority: 0/
Queue: Gearman

People
Owner: Nobody in particular
Requestors: dean [...] fragfest.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.11
Fixed in: 1.12.009



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
is solved in v1.12.009