Module...figData(3pm)
πΈ NAME πΈ
Okay so bestie, Module::Build::ConfigData is literally the configuration-data holder for the Module::Build module β it's giving backstage-pass energy for config. π
This page is Module...figData(3pm), from the User Contributed Perl Documentation crew. β¨
π SYNOPSIS π
Here's the copy-paste-ready group chat cheat sheet:
use Module::Build::ConfigData;
$value = Module::Build::ConfigData->config('foo');
$value = Module::Build::ConfigData->feature('bar');
@names = Module::Build::ConfigData->config_names;
@names = Module::Build::ConfigData->feature_names;
Module::Build::ConfigData->set_config(foo => $new_value);
Module::Build::ConfigData->set_feature(bar => $new_value);
Module::Build::ConfigData->write; # Save changes
π¦ DESCRIPTION π¦
This module holds the configuration data for the Module::Build module, no cap. It also gives you a programmatic interface for getting or setting that configuration data. π«Ά
β οΈ Real talk: to actually make changes, you'll have to have write access to the Module::Build::ConfigData module, and you should attempt to understand the repercussions of your actions. Like, please read the room before editing, okay? π
π METHODS π
π
config($name)
Give it a string argument and it returns the value of the configuration item with that name β or undef if no such item exists. Simple. Iconic. β¨
π feature($name)
Give it a string argument and it returns the value of the feature with that name β or undef if no such feature exists. π
π set_config($name, $value)
Sets the configuration item with the given name to the given value. The value may be any Perl scalar that will serialize correctly using Data::Dumper. That includes references, objects (usually), and complex data structures. It probably does not include transient things like filehandles or sockets. π
π§ set_feature($name, $value)
Sets the feature with the given name to the given boolean value. The value gets converted to 0 or 1 automatically. Slay, booleans. π
β config_names()
Returns a list of all the names of config items currently defined in Module::Build::ConfigData β or, in scalar context, the number of items. π
π¦ feature_names()
Returns a list of all the names of features currently defined in Module::Build::ConfigData β or, in scalar context, the number of features. π
πΈ auto_feature_names()
Returns a list of all the names of features whose availability is dynamically determined β or, in scalar context, the number of such features. It does not include such features that have later been set to a fixed value. iykyk. π«
π₯ write()
Commits any changes from set_config() and set_feature() to disk. Requires write access to the Module::Build::ConfigData module. Periodt. π
π AUTHOR π
Module::Build::ConfigData was automatically created using Module::Build. Module::Build was written by Ken Williams, but he holds no authorship claim or copyright claim to the contents of Module::Build::ConfigData. Respect the lore. π«Ά
Cute sign-off time: this page is from perl v5.42.0, dated 2023-04-29, and the footer vibe is Module...figData(3pm). Byeee, bestie! πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Module-Build 0.423400-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms