Skip Menu |

This queue is for tickets about the Parallel-Tiny CPAN distribution.

Report information
The Basics
Id: 115306
Status: resolved
Priority: 0/
Queue: Parallel-Tiny

People
Owner: SUTT [...] cpan.org
Requestors: james2vegas [...] aim.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 0.02



Subject: Undeclared dependency on 5.12 features
Code passes an array to keys (a new feature in perl 5.12) without declaring its dependency on perl 5.12 and later:
$ make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/forker.t .. Type of arg 1 to keys must be hash (not array dereference) at /home/u/.cpanm/work/1465832746.16046/Parallel-Tiny-0.06/blib/lib/Parallel/Tiny.pm line 116, near "})"
Compilation failed in require at t/forker.t line 3.
BEGIN failed--compilation aborted at t/forker.t line 3.
t/forker.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run

Broken since 0.4

Should either make the module 5.12+ only in Makefile.PL and Tiny.pm, use Array::Each::Override. or instead of keys @{ function() }, use (0..$#{ function() }) which would be equivalent.


 
 
The dependency on 5.12+ has been added in version "0.20".