Skip Menu |

This queue is for tickets about the LEOCHARRE-CLI2 CPAN distribution.

Report information
The Basics
Id: 100192
Status: open
Priority: 0/
Queue: LEOCHARRE-CLI2

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.16
Fixed in: (no value)



Subject: Can't use 'defined(%hash)'
The module does not work anymore with perl 5.21.x. The test suite fails starting with: PERL_DL_NONLAZY=1 "/bbbike/perl-5.21.5/bin/perl5.21.5" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at lib/LEOCHARRE/CLI2.pm line 215. Compilation failed in require at t/00_no_opts.t line 4. BEGIN failed--compilation aborted at t/00_no_opts.t line 4. # Looks like your test exited with 255 before it could output anything. t/00_no_opts.t ........... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run ...
All the test fail horribly: 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/00_no_opts.t ........... Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at lib/LEOCHARRE/CLI2.pm line 215. Compilation failed in require at t/00_no_opts.t line 4. BEGIN failed--compilation aborted at t/00_no_opts.t line 4. # Looks like your test exited with 255 before it could output anything. t/00_no_opts.t ........... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run t/01_withopts.t .......... Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at lib/LEOCHARRE/CLI2.pm line 215. Compilation failed in require at t/01_withopts.t line 5. BEGIN failed--compilation aborted at t/01_withopts.t line 5. # Looks like your test exited with 255 before it could output anything. t/01_withopts.t .......... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run t/02_envs.t .............. Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at lib/LEOCHARRE/CLI2.pm line 215. Compilation failed in require at t/02_envs.t line 4. BEGIN failed--compilation aborted at t/02_envs.t line 4. # Looks like your test exited with 255 before it could output anything. t/02_envs.t .............. Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run
Just to spell it out, diff -ru LEOCHARRE-CLI2-1.16-orig/lib/LEOCHARRE/CLI2.pm LEOCHARRE-CLI2-1.16/lib/LEOCHARRE/CLI2.pm --- LEOCHARRE-CLI2-1.16-orig/lib/LEOCHARRE/CLI2.pm 2010-03-25 02:45:08.000000000 +0000 +++ LEOCHARRE-CLI2-1.16/lib/LEOCHARRE/CLI2.pm 2016-05-24 15:54:19.160195992 +0100 @@ -212,7 +212,7 @@ # ARGV ----- begin sub _argv { - defined %ARGV or _init_argv(); + %ARGV or _init_argv(); if (my $key = shift){ return $ARGV{$key}; }
On Fri Nov 07 17:28:54 2014, SREZIC wrote: Show quoted text
> The module does not work anymore with perl 5.21.x. The test suite > fails starting with: > > PERL_DL_NONLAZY=1 "/bbbike/perl-5.21.5/bin/perl5.21.5" "- > MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef > *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" > t/*.t > Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) > at lib/LEOCHARRE/CLI2.pm line 215. > Compilation failed in require at t/00_no_opts.t line 4. > BEGIN failed--compilation aborted at t/00_no_opts.t line 4. > # Looks like your test exited with 255 before it could output > anything. > t/00_no_opts.t ........... > Dubious, test returned 255 (wstat 65280, 0xff00) > No subtests run > ...
LEOCHARRE, Do you plan to maintain this library going forward? If not, are you willing to share comaintenance? Thank you very much. Jim Keenan