]> git.vpit.fr Git - perl/modules/Acme-CPANAuthors-You-re_using.git/blobdiff - lib/Acme/CPANAuthors/You/re_using.pm
Only effectively builds the author list in t/10-base.t
[perl/modules/Acme-CPANAuthors-You-re_using.git] / lib / Acme / CPANAuthors / You / re_using.pm
index be110240c55530de2f71ec28c9f283d437a06c6b..3841272ecbf4f55a09c9555630d51748375994b2 100644 (file)
@@ -39,7 +39,11 @@ It may take some time to load since it has to get CPAN indexes at C<BEGIN> 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;