X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FAcme%2FCPANAuthors%2FYou%2Fre_using.pm;h=3841272ecbf4f55a09c9555630d51748375994b2;hb=cbb501aa1e454f486e962d66d146dddad3d16ddc;hp=36fd9c77d192ad5208af2f45436e02e6531c5e08;hpb=ccce87545fda1846090f652fc4770e2393070ab9;p=perl%2Fmodules%2FAcme-CPANAuthors-You-re_using.git diff --git a/lib/Acme/CPANAuthors/You/re_using.pm b/lib/Acme/CPANAuthors/You/re_using.pm index 36fd9c7..3841272 100644 --- a/lib/Acme/CPANAuthors/You/re_using.pm +++ b/lib/Acme/CPANAuthors/You/re_using.pm @@ -11,7 +11,7 @@ use Acme::CPANAuthors::Utils; =head1 NAME -Acme::CPANAuthors::You::re_using - We are the CPAN authors that have written the modules installed for this perl. +Acme::CPANAuthors::You::re_using - We are the CPAN authors that have written the modules installed on your perl! =head1 VERSION @@ -33,13 +33,17 @@ BEGIN { =head1 DESCRIPTION -This module builds an L class by looking for all installed modules for the current C and then retrieving theirs authors' name and PAUSE id. +This module builds an L class by listing all the modules that are installed on the current C 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 time. =cut +our $SKIP; + BEGIN { + return if $SKIP; + my %authors; my $pkgs = Acme::CPANAuthors::Utils::cpan_packages(); @@ -48,10 +52,12 @@ BEGIN { 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;