Config::Maker::Eval - Environment to run user-code in Config::Maker
# In perl-code in metaconfig, config or template Get($path) Get($path, $default) Get1($path) Get1($path, $default) Value($path_or_option) Type($path_or_option) Exists($path) Unique($path) One($path)
All user code executed by Config::Maker, whether read from metaconfig, config or template, is executed in Config::Maker::Eval package. In that package, following convenience functions are available. Note, that when relative path is specified to any of them, it is resolved relative to the current topic ($_). Thus it must contain a config element.
Resolves $path and returns list of results, or the first result in scalar context. If $default is given, and the path does not match, $default is returned.
Resolves path and returns the result. If there is more than one result, or if the path does not match and no default is given, throws an error.
Returns value of config element or matching path (exactly one must match). If no arguments given, returns value of $_.
Returns type of config element or matching path (exactly one must match). If no arguments given, returns type of $_.
Returns true iff $path matches at least one config element.
Returns true iff $path matches at most one config element.
Returns true iff $path matches exactly one config element.
Jan Hudec <bulb@ucw.cz>
Copyright 2004 Jan Hudec. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
configit(1), perl(1), Config::Maker(3pm).
To install Config::Maker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Maker
CPAN shell
perl -MCPAN -e shell install Config::Maker
For more information on module installation, please visit the detailed CPAN module installation guide.