Acme-CPANModules-LoadingModules

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME
    Acme::CPANModules::LoadingModules - List of modules to load other Perl
    modules

VERSION
    This document describes version 0.001 of
    Acme::CPANModules::LoadingModules (from Perl distribution
    Acme-CPANModules-LoadingModules), released on 2023-11-20.

DESCRIPTION
    Basics

    Module::Load is basically just a thin wrapper over Perl's builtin
    require() to translate between module name and path name, since the
    traditional behavior of require() is to expect module name in bareword
    form but path name in string form. This confusion will likely be fixed
    in future perl versions. For example, see PPC 0006 [1].

    [1] <https://github.com/Perl/PPCs/blob/main/ppcs/ppc0006-load-module.md>

    Installing modules automatically on demand

    Since Perl provides require hooks, one can trap the module loading
    process and check for an uninstalled module and attempt to install it
    automatically on demand when a code wants to load that module. Probably
    not suitable for use in production. See separate list:
    Acme::CPANModule::ModuleAutoinstallers.

    Loading module on demand

    Aside from require hook, Perl also provides the AUTOLOAD mechanism (see
    "perlsub" documentation for more details). This lets you catch unknown
    function being called and lets you attempt to load a module that might
    provide that function. It is not exactly "loading modules on demand" but
    close enough for a lot of cases. See separate list:
    Acme::CPANModule::ModuleAutoloaders.

    Loading multiple modules at once

    all requires all packages under a namespace. It will search the
    filesystem for installed module source files under a specified namespace
    and load them all.

    lib::require::all loads all modules in a directory.

    Logging module loading

    Require::HookChain::log::logger

    Require::HookChain::log::stderr

    Preventing loading certain modules

    lib::filter, lib::disallow

    Require hook frameworks

    These frameworks let you create require hook more easily.

    Require::Hook

    Require::Hook::More

    Require::HookChain

    Specifying relative paths

    lib::relative

ACME::CPANMODULES ENTRIES
    Module::Load
        Author: BINGOS <https://metacpan.org/author/BINGOS>

    Acme::CPANModule::ModuleAutoinstallers
    Acme::CPANModule::ModuleAutoloaders
    all Author: DEXTER <https://metacpan.org/author/DEXTER>

    lib::require::all
        Author: MIYAGAWA <https://metacpan.org/author/MIYAGAWA>

    Require::HookChain::log::logger
        Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>

    Require::HookChain::log::stderr



( run in 2.397 seconds using v1.01-cache-2.11-cpan-2398b32b56e )