Subject: | Yields empty elements |
A fair number of my modules are failing one of the CPANTS tests;
prereq_matches_use. It is suspected this is because of a bug in
Module::ExtractUse.
From #perl / Freenode:
(14:10) <bigpresh> LeoNerd: Module::ExtractUse is used to extract a list
of modules used; it does attempt to strip out POD first
(14:11) <LeoNerd> bigpresh: It's just that there's a page giving
details, and it doesn't list any.. eg.:
http://cpants.perl.org/dist/kwalitee/IO-Async-Loop-Ppoll#prereq_matches_use
(14:11) <LeoNerd> Notice the list is empty
(14:12) <bigpresh> LeoNerd: Oh yeah - I didn't notice that
...
(14:16) <bigpresh> Although, actually, it returned a list of 4 modules
being used, the first of which is an empty string...
(14:16) <bigpresh> That could be confusing the rest of the CPANTS code
...
(14:21) <bigpresh> LeoNerd: Just for reference,
http://scsys.co.uk:8002/38693
this paste:
DB<1> use Class::ByOS;
DB<2> use Module::ExtractUse;
DB<3> $meu = Module::ExtractUse->new;
DB<4> $meu->extract_use($INC{'Class/ByOS.pm'});
DB<5> x $meu->array;
0 ''
1 'warnings'
2 'strict'
3 'Exporter'
Perhaps this initial empty value is confusing the CPANTS testing code?
--
Paul Evans