X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FAcme%2FCPANAuthors%2FYou%2Fre_using.pm;h=6675784681a3b551dd6103fe0761f0f06830e004;hb=28295033689a8250aa158801bfef0a85661030fa;hp=3841272ecbf4f55a09c9555630d51748375994b2;hpb=cbb501aa1e454f486e962d66d146dddad3d16ddc;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 3841272..6675784 100644 --- a/lib/Acme/CPANAuthors/You/re_using.pm +++ b/lib/Acme/CPANAuthors/You/re_using.pm @@ -15,13 +15,13 @@ Acme::CPANAuthors::You::re_using - We are the CPAN authors that have written the =head1 VERSION -Version 0.01 +Version 0.02 =cut our $VERSION; BEGIN { - $VERSION = '0.01'; + $VERSION = '0.02'; } =head1 SYNOPSIS @@ -35,14 +35,21 @@ BEGIN { 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. +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. + +=head1 FUNCTIONS + +=head2 C + +Fetches and registers the names into L. +This function is automatically called when you C this module, unless you have set the package variable C<$Acme::CPANAuthors::You're_using::SKIP> to true beforehand. =cut -our $SKIP; +BEGIN { require Acme::CPANAuthors::Register; } -BEGIN { - return if $SKIP; +sub register { + return if shift; my %authors; @@ -75,10 +82,13 @@ BEGIN { $authors{$cpanid} = defined $name ? $name : $cpanid; } - require Acme::CPANAuthors::Register; Acme::CPANAuthors::Register->import(%authors); } +our $SKIP; + +BEGIN { register($SKIP) } + =head1 DEPENDENCIES L, L, L.