This module builds an L<Acme::CPANAuthors> class by listing all the modules that are installed on the current C<perl> and then retrieving the name and the PAUSE id of their corresponding authors.
-It may take some time to load since it has to get CPAN indexes at C<BEGIN> time.
+It may take some time to load since it has to search all the directory trees given by your C<@INC> for modules, but also to get and parse CPAN indexes.
=cut
+our $SKIP;
+
BEGIN {
+ return if $SKIP;
+
my %authors;
my $pkgs = Acme::CPANAuthors::Utils::cpan_packages();
my $auths = Acme::CPANAuthors::Utils::cpan_authors();
croak 'Couldn\'t retrieve a valid Parse::CPAN::Authors object' unless $auths;
- my $installed = ExtUtils::Installed->new;
+ my $installed = ExtUtils::Installed->new(extra_libs => \@INC);
croak 'Couldn\'t create a valid ExtUtils::Installed object' unless $installed;
- for ($installed->modules()) {
+ for ($installed->modules) {
+ next unless defined and $_ ne 'Perl';
+
my $mod = $pkgs->package($_);
next unless $mod;