Apache::Config::Preproc::Expand - base class for preprocessor modules
$obj = new($conf, ...)
The only required argument to the constructor is a reference to the Apache::Config::Preproc object which controls the preprocessing. The default constructor saves this reference in the object and makes it available via the conf method. Rest of arguments are specific for each particular expansion and are ignored by the default constructor.
Returns the Apache::Config::Preproc object which controls the preprocessing. The module can use it in order to inspect the configuration parse tree.
$obj->begin_section($section);
Invoked before running preprocessor expansions on a section. The section (an instance of Apache::Admin::Config::Tree or a derived class) is passed as the argument.
Default implementation is a no-op.
$obj->end_section($section);
Invoked when all preprocessor expansions are finished for a section. The section (an instance of Apache::Admin::Config::Tree or a derived class) is passed as the argument.
$result = $obj->expand($node, \@items);
Expands the configuration tree node $node, places the resulting nodes to @items and returns true. Returns false if no expansion was done on the node.
To install Apache::Config::Preproc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Config::Preproc
CPAN shell
perl -MCPAN -e shell install Apache::Config::Preproc
For more information on module installation, please visit the detailed CPAN module installation guide.