1Module::Build::Notes(3pmP)erl Programmers Reference GuidMeodule::Build::Notes(3pm)
2
3
4

NAME

6       $notes_name - Configuration for $module_name
7

SYNOPSIS

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

DESCRIPTION

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

METHODS

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

AUTHOR

66       $notes_name was automatically created using "Module::Build".
67       "Module::Build" was written by Ken Williams, but he holds no authorship
68       claim or copyright claim to the contents of $notes_name.
69
70
71
72perl v5.10.1                      2017-03-22         Module::Build::Notes(3pm)
Impressum