Apache::Config::Preproc::ifmodule - expand Include statements
$x = new Apache::Config::Preproc '/path/to/httpd.conf', -expand => [ qw(include) ]; $x = new Apache::Config::Preproc '/path/to/httpd.conf', -expand => [ { include => { -server_root => $dir } } ];
Processes Include and IncludeOptional statements and replaces them with the contents of the files supplied in their arguments. If the argument is not an absolute file name, it is searched in the server root directory. The latter is determined inspecting the ServerRoot statement. If this statement is absent, the current working directory is used. The -server_root constructor argument can be used to enforce a specific server root directory.
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.