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


Apache2-WebApp-Toolkit documentation  | view source Contained in the Apache2-WebApp-Toolkit distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

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

DESCRIPTION

Top

A module for accessing application configuration settings.

OBJECT METHODS

Top

parse

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

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

FILE FORMAT

Top

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

Top

Apache2::WebApp, AppConfig

AUTHOR

Top

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

COPYRIGHT

Top


Apache2-WebApp-Toolkit documentation  | view source Contained in the Apache2-WebApp-Toolkit distribution.