Acme-TLDR

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


      * DEBUG - when set, dump the internals status (most importantly, the
      long <=> short name mapping;

      * NOCACHE - when set, no persistent cache is saved.

CAVEAT

    To reduce loading time (ExtUtils::Installed->new->modules is too damn
    slow), an installed module cache is initialized upon Acme::TLDR start.
    It is updated when the perllocal.pod file of the used Perl version gets
    a modified time more recent than the cache file itself.

SEE ALSO

      * App::p

      * L

AUTHOR

lib/Acme/TLDR.pm  view on Meta::CPAN

    return;
}

sub _installed {
    my $cache = catfile(
        File::HomeDir->my_data,
        q(.Acme-TLDR-) . md5_hex(join ':' => sort @INC) . q(.cache)
    );
    _debug(q(ExtUtils::Installed cache: %s), $cache);

    my $updated = -M $cache;

    my $modules;
    if (
        not defined $updated
            or
        grep { -e and -M _ < $updated }
        map { catfile($_, q(perllocal.pod)) }
        @INC
    ) {
        ## no critic (ProhibitPackageVars)
        _debug(q(no cache found; generating));
        $modules = [
            uniq
                keys %{$Module::CoreList::version{$]}},
                ExtUtils::Installed->new->modules,
        ];

lib/Acme/TLDR.pm  view on Meta::CPAN

=item *

C<NOCACHE> - when set, no persistent cache is saved.

=back

=head1 CAVEAT

To reduce loading time (C<ExtUtils::Installed-E<gt>new-E<gt>modules> is too damn slow), an installed module cache
is initialized upon L<Acme::TLDR> start.
It is updated when the F<perllocal.pod> file of the used Perl version gets a modified time more recent than the cache file itself.

=head1 SEE ALSO

=over 4

=item *

L<App::p>

=item *



( run in 0.753 second using v1.01-cache-2.11-cpan-05444aca049 )