{
    "mode": "perldoc",
    "parameter": "Module::Build::ConfigData",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Module%3A%3ABuild%3A%3AConfigData/json",
    "generated": "2026-06-13T03:52:50Z",
    "synopsis": "use Module::Build::ConfigData;\n$value = Module::Build::ConfigData->config('foo');\n$value = Module::Build::ConfigData->feature('bar');\n@names = Module::Build::ConfigData->confignames;\n@names = Module::Build::ConfigData->featurenames;\nModule::Build::ConfigData->setconfig(foo => $newvalue);\nModule::Build::ConfigData->setfeature(bar => $newvalue);\nModule::Build::ConfigData->write;  # Save changes",
    "sections": {
        "NAME": {
            "content": "Module::Build::ConfigData - Configuration for Module::Build\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Module::Build::ConfigData;\n$value = Module::Build::ConfigData->config('foo');\n$value = Module::Build::ConfigData->feature('bar');\n\n@names = Module::Build::ConfigData->confignames;\n@names = Module::Build::ConfigData->featurenames;\n\nModule::Build::ConfigData->setconfig(foo => $newvalue);\nModule::Build::ConfigData->setfeature(bar => $newvalue);\nModule::Build::ConfigData->write;  # Save changes\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module holds the configuration data for the \"Module::Build\" module. It also provides a\nprogrammatic interface for getting or setting that configuration data. Note that in order to\nactually make changes, you'll have to have write access to the \"Module::Build::ConfigData\"\nmodule, and you should attempt to understand the repercussions of your actions.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "",
            "subsections": [
                {
                    "name": "config",
                    "content": "Given a string argument, returns the value of the configuration item by that name, or\n\"undef\" if no such item exists.\n"
                },
                {
                    "name": "feature",
                    "content": "Given a string argument, returns the value of the feature by that name, or \"undef\" if no\nsuch feature exists.\n"
                },
                {
                    "name": "set_config",
                    "content": "Sets the configuration item with the given name to the given value. The value may be any\nPerl scalar that will serialize correctly using \"Data::Dumper\". This includes references,\nobjects (usually), and complex data structures. It probably does not include transient\nthings like filehandles or sockets.\n"
                },
                {
                    "name": "set_feature",
                    "content": "Sets the feature with the given name to the given boolean value. The value will be converted\nto 0 or 1 automatically.\n"
                },
                {
                    "name": "config_names",
                    "content": "Returns a list of all the names of config items currently defined in\n\"Module::Build::ConfigData\", or in scalar context the number of items.\n"
                },
                {
                    "name": "feature_names",
                    "content": "Returns a list of all the names of features currently defined in\n\"Module::Build::ConfigData\", or in scalar context the number of features.\n"
                },
                {
                    "name": "auto_feature_names",
                    "content": "Returns a list of all the names of features whose availability is dynamically determined, or\nin scalar context the number of such features. Does not include such features that have\nlater been set to a fixed value.\n"
                },
                {
                    "name": "write",
                    "content": "Commits any changes from \"setconfig()\" and \"setfeature()\" to disk. Requires write access\nto the \"Module::Build::ConfigData\" module.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "\"Module::Build::ConfigData\" was automatically created using \"Module::Build\". \"Module::Build\" was\nwritten by Ken Williams, but he holds no authorship claim or copyright claim to the contents of\n\"Module::Build::ConfigData\".\n",
            "subsections": []
        }
    },
    "summary": "Module::Build::ConfigData - Configuration for Module::Build",
    "flags": [],
    "examples": [],
    "see_also": []
}