1DBM::Deep::ConfigData(3U)ser Contributed Perl DocumentatiDoBnM::Deep::ConfigData(3)
2
3
4

NAME

6       DBM::Deep::ConfigData - Configuration for DBM::Deep
7

SYNOPSIS

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

DESCRIPTION

21       This module holds the configuration data for the "DBM::Deep" 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 "DBM::Deep::ConfigData" module,
25       and you 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 "DBM::Deep::ConfigData", or in scalar context the number of
50           items.
51
52       feature_names()
53           Returns a list of all the names of features currently defined in
54           "DBM::Deep::ConfigData", or in scalar context the number of
55           features.
56
57       auto_feature_names()
58           Returns a list of all the names of features whose availability is
59           dynamically determined, or in scalar context the number of such
60           features.  Does not include such features that have later been set
61           to a fixed value.
62
63       write()
64           Commits any changes from "set_config()" and "set_feature()" to
65           disk.  Requires write access to the "DBM::Deep::ConfigData" module.
66

AUTHOR

68       "DBM::Deep::ConfigData" was automatically created using
69       "Module::Build".  "Module::Build" was written by Ken Williams, but he
70       holds no authorship claim or copyright claim to the contents of
71       "DBM::Deep::ConfigData".
72
73
74
75perl v5.30.0                      2019-07-26          DBM::Deep::ConfigData(3)
Impressum