The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OpenPlugin::Config::Conf - Read Config::General configuration files (similar to Apache configs)

PARAMETERS

  • src

    Path and filename to the config file. If you don't wish to pass this parameter into OpenPlugin, you may instead set the package variable:

    $OpenPlugin::Config::Src = /path/to/config.conf

  • config

    Config passed in as a hashref

  • dir

    Directory to look for the config file in. This is usually unnecessary, as most will choose to make this directory part of the 'src' parameter.

  • type

    Driver to use for the config file. In most cases, the driver is determined by the extension of the file. If that may be unreliable for some reason, you can use this parameter.

 Example:
 my $OP = OpenPlugin->new( config => { src => '/some/file/name.conf' } );

CONFIG OPTIONS

There is no need to define a driver for a config file. However, within a "conf" config file, you'll want to use the following syntax:

 <Section>
    <one>
        key     = value
        another = value-another
    </one>
    <two>
        key     = value-two
        another = value-another-two
    </two>
 </Section>

BUGS

None known.

TO DO

Nothing known.

SEE ALSO

Config::General

COPYRIGHT

Copyright (c) 2001-2003 Eric Andreychek. All rights reserved.

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

AUTHORS

Eric Andreychek <eric@openthought.net>