logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ExtUtils::Config - A wrapper for perl's configuration

Authors

       •   Ken Williams <kwilliams@cpan.org>

       •   Leon Timmermans <leont@cpan.org>

Description

       ExtUtils::Config is an abstraction around the %Config hash. By itself it is not a particularly
       interesting module by any measure, however it ties together a family of modern toolchain modules.

Methods

new(\%config)
       Create a new ExtUtils::Config object. The values in "\%config" are used to initialize the object.

   get($key)
       Get the value of $key. If not overridden it will return the value in %Config.

   exists($key)
       Tests for the existence of $key.

   but(\%keys)
       This creates a new "ExtUtils::Config" object based on the current one, but with the values in %keys
       replacing the current values. Any undefined value means it will be removed from the overriden set.

   values_set()
       Get a hashref of all overridden values.

   all_config()
       Get a hashref of the complete configuration, including overrides.

   serialize()
       This method serializes the object to some kind of string. This can be useful for various caching
       purposes.

Name

       ExtUtils::Config - A wrapper for perl's configuration

See Also

       •   Module::Build::Tiny

       •   ExtUtils::InstallPaths

       •   CPAN::Static::Install

       •   ExtUtils::HasCompiler

       •   ExtUtils::Builder

       •   CPAN::Requirements::Dynamic

       •   Devel::FindPerl

Synopsis

        my $config = ExtUtils::Config->new();
        $config->get('installsitelib');

Version

       version 0.010

See Also