1Module::Build::ConfigDaUtsae(r3)Contributed Perl DocumenMtoadtuiloen::Build::ConfigData(3)
2
3
4

NAME

6       Module::Build::ConfigData - Configuration for Module::Build
7

SYNOPSIS

9         use Module::Build::ConfigData;
10         $value = Module::Build::ConfigData->config('foo');
11         $value = Module::Build::ConfigData->feature('bar');
12
13         @names = Module::Build::ConfigData->config_names;
14         @names = Module::Build::ConfigData->feature_names;
15
16         Module::Build::ConfigData->set_config(foo => $new_value);
17         Module::Build::ConfigData->set_feature(bar => $new_value);
18         Module::Build::ConfigData->write;  # Save changes
19

DESCRIPTION

21       This module holds the configuration data for the "Module::Build"
22       module.  It also provides a programmatic interface for getting or
23       setting that configuration data.  Note that in order to actually make
24       changes, you'll have to have write access to the
25       "Module::Build::ConfigData" module, and you should attempt to
26       understand the repercussions of your actions.
27

METHODS

29       config($name)
30           Given a string argument, returns the value of the configuration
31           item by that name, or "undef" if no such item exists.
32
33       feature($name)
34           Given a string argument, returns the value of the feature by that
35           name, or "undef" if no such feature exists.
36
37       set_config($name, $value)
38           Sets the configuration item with the given name to the given value.
39           The value may be any Perl scalar that will serialize correctly
40           using "Data::Dumper".  This includes references, objects (usually),
41           and complex data structures.  It probably does not include
42           transient things like filehandles or sockets.
43
44       set_feature($name, $value)
45           Sets the feature with the given name to the given boolean value.
46           The value will be converted to 0 or 1 automatically.
47
48       config_names()
49           Returns a list of all the names of config items currently defined
50           in "Module::Build::ConfigData", or in scalar context the number of
51           items.
52
53       feature_names()
54           Returns a list of all the names of features currently defined in
55           "Module::Build::ConfigData", or in scalar context the number of
56           features.
57
58       auto_feature_names()
59           Returns a list of all the names of features whose availability is
60           dynamically determined, or in scalar context the number of such
61           features.  Does not include such features that have later been set
62           to a fixed value.
63
64       write()
65           Commits any changes from "set_config()" and "set_feature()" to
66           disk.  Requires write access to the "Module::Build::ConfigData"
67           module.
68

AUTHOR

70       "Module::Build::ConfigData" was automatically created using
71       "Module::Build".  "Module::Build" was written by Ken Williams, but he
72       holds no authorship claim or copyright claim to the contents of
73       "Module::Build::ConfigData".
74
75
76
77perl v5.16.3                      2014-06-10      Module::Build::ConfigData(3)
Impressum