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.
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.