Subject: | Can't use 'defined(@array)' |
The compilation of the module fails with newer perls (e.g. 5.23.8):
# Failed test 'use Gearman::WorkerSpawner;'
# at t/00-create.t line 6.
# Tried to use 'Gearman::WorkerSpawner'.
# Error: Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /tmpfs/.cpan-build-cpansand/2016030809/Gearman-WorkerSpawner-2.16-7_KNS5/blib/lib/Gearman/WorkerSpawner.pm line 151.
# Compilation failed in require at t/00-create.t line 6.
# BEGIN failed--compilation aborted at t/00-create.t line 6.
Can't locate object method "new" via package "Gearman::WorkerSpawner" at t/00-create.t line 8.
# Looks like you planned 2 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/00-create.t .........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/2 subtests