On Wed May 21 07:52:56 2014, ETHER wrote:
Show quoted text> Background:
http://blogs.perl.org/users/gabor_szabo/2014/05/one-
> package-perl-pm-file.html
>
> Module::Metadata can provide all the information needed for this
> metric (although the interfaces may be a bit buggy still - I"m working
> on that) :) -- I'll provide code for this metric when that's fixed.
I suppose necessary information is already there. We just need to define the metric(s), or "Anything that can be used independently" a bit more clearly.
1) .pm file may not have extra indexable packages (the ones that don't correspond with the path to the .pm file) at all? (though I believe it's too strict)
2) .pm file may have some extra indexable packages as long as they are children? (lib/Foo/Bar.pm may have Foo::Bar::Baz as well, but may not have Foo::Baz, Bar::Foo etc)
3) or anything else? (such as prohibiting multiple packages in a stricter sense, or only .pm files in dual-life dists should be considered (CPANTS ignores core-only packages as it doesn't analyze "perl" distributions), etc)