Apache2::WebApp::AppConfig - AppConfig extension for parsing config files
$c->config->parse('/path/to/file.cfg'); print $c->config->{$key}, "\n"; # key = value format
A module for accessing application configuration settings.
Return the configuration name/value pairs as a reference to a hash.
$c->config->parse($config);
# this is a comment foo = bar # bar is the value of 'foo' url = index.html#hello # 'hello' is treated as a comment
[block1] foo = bar # bar is the value of 'block1_foo' [block2] foo = baz # baz is the value of 'block2_foo'
Apache2::WebApp, AppConfig
Marc S. Brooks, <mbrooks@cpan.org> - http://mbrooks.info
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/artistic.html
To install Apache2::WebApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::WebApp
CPAN shell
perl -MCPAN -e shell install Apache2::WebApp
For more information on module installation, please visit the detailed CPAN module installation guide.