http://www.perlmonks.org?node_id=1044590


in reply to Re^2: Understanding CPAN indexing
in thread Understanding CPAN indexing

As I understand it, "provides" beats "no_index". If you want a module to be excluded from CPAN indexes, then you need to make sure it's covered by "no_index" and not included in "provides".

That said, the main reason you'd normally do that would be for a module that is bundled with your distribution, but not intended for installation. For example, a module that is only needed to run the test suite.

Modules that are needed for the distribution to run probably ought to be indexed as normal.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name