Application-Config

 view release on metacpan or  search on metacpan

lib/Application/Config.pm  view on Meta::CPAN

for the entire config file.  The second, pkgconfig, returns a hash reference
that contains the part of the config file relevent to the calling package. For
example the config file:

  foo=bar
  baz=bash
  
  [My::Test::Class]
  foo=baz

Would result in the config method returning a data structure that looks
something like:

  {
    '_' => {
      'foo' => 'bar',
      'baz' => 'bash'
    }
    'My::Test::Class' => {
      'foo' => 'baz'
    }
  }

Calling pkgconfig from the My::Test::Class package would return only the
structure under the C<My::Test::Class> key.

=head1 WHERE ARE THE CONFIG FILES ON DISK?

Application config looks, in this order, for a config file:

=over 4

=item ~/.<filename>

=item ./.<filename>

=item ./etc/<filename>

=item /etc/<filename>



( run in 0.355 second using v1.01-cache-2.11-cpan-64827b87656 )