NAME

SimpleConfig - Simple configuration file parser

SYNOPSIS

use SimpleConfig;

$config = SimpleConfig->new("configrc", [qw(Foo Bar Baz Quux)]);

$config->parse();

DESCRIPTION

C<SimpleConfig> reads and parses simple configuration files.  It's
designed to be smaller and simpler than the C<ConfigReader> module
and is more suited to simple configuration files.

CONSTRUCTOR

new ( FILENAME, DIRECTIVES )

This is the constructor for a new SimpleConfig object.

FILENAME tells the instance where to look for the configuration file.

DIRECTIVES is a reference to an array. Each member of the array should contain one valid directive.

This does the actual work. No parameters needed.

Returns the parsed value for that directive.

LIMITATIONS/BUGS

Directives are case-sensitive.

If a directive is repeated, the first instance will silently be ignored.

Always die()s on errors instead of reporting them.

get() doesn't warn if used before parse().

get() doesn't warn if you try to acces the value of an unknown directive not know (ie: one that wasn't passed via new()).

All these will be addressed in future releases.

AUTHOR

Bek Oberin <gossamer@tertius.net.au>

COPYRIGHT

Copyright (c) 1998 Bek Oberin. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 52:

'=item' outside of any '=over'

Around line 89:

=pod directives shouldn't be over one line long! Ignoring all 2 lines of content

Around line 122:

=pod directives shouldn't be over one line long! Ignoring all 2 lines of content

Around line 163:

You forgot a '=back' before '=head1'