NAME

Apache2::WebApp::AppConfig - AppConfig extension for parsing config files

SYNOPSIS

$c->config->parse('/path/to/file.cfg');

print $c->config->{$key}, "\n";    # key = value format

DESCRIPTION

A module for accessing application configuration settings.

OBJECT METHODS

parse

Return the configuration name/value pairs as a reference to a hash.

$c->config->parse($config);

FILE FORMAT

STANDARD

# this is a comment
foo = bar               # bar is the value of 'foo'
url = index.html#hello  # 'hello' is treated as a comment

BLOCKED

[block1]
foo = bar               # bar is the value of 'block1_foo'

[block2]
foo = baz               # baz is the value of 'block2_foo' 

SEE ALSO

Apache2::WebApp, AppConfig

AUTHOR

Marc S. Brooks, <mbrooks@cpan.org> - http://mbrooks.info

COPYRIGHT

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