Generic perl config file parser module https://metacpan.org/pod/Config::General
Find a file
T. von Dein 9a3e72d7d1
All checks were successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/build/5 Pipeline was successful
ci/woodpecker/push/build/6 Pipeline was successful
ci/woodpecker/push/build/4 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
fix release pipeline (#8)
2025-12-10 20:51:15 +01:00
.github/workflows use ubuntu 24 2025-01-08 09:24:46 +01:00
.woodpecker fix release pipeline (#8) 2025-12-10 20:51:15 +01:00
General don't use vars, use our 2024-10-18 02:30:21 +02:00
t fix duplicate var warning 2025-01-07 17:37:54 +01:00
.gitignore missed version number 2025-01-07 21:45:32 +00:00
Changelog move to codeberg (#7) 2025-12-09 21:30:19 +01:00
example.cfg 2.29 2009-10-10 16:32:11 +00:00
General.pm fix tests 2025-01-07 20:36:10 +00:00
Makefile.PL move to codeberg (#7) 2025-12-09 21:30:19 +01:00
MANIFEST [re-]added META.json 2025-01-08 09:00:48 +01:00
META.json move to codeberg (#7) 2025-12-09 21:30:19 +01:00
META.yml move to codeberg (#7) 2025-12-09 21:30:19 +01:00
README missed version number 2025-01-07 21:45:32 +00:00
TODO fix rt.cpan.org#115326, added IFDefine support, fix POD indentation 2016-07-08 08:46:02 +00:00

NAME
       Config::General - Generic Config Module

SYNOPSIS
        use Config::General;
        $conf = new Config::General(-ConfigFile => "myconfig.rc");
        my %config = $conf->getall;


DESCRIPTION
       This module opens a config file and parses it's contents
       for you. After parsing the module returns a hash structure
       which contains the representation of the config file.

       The format of config files supported by Config::General is
       inspired by the well known apache config format, in fact,
       this module is 100% read-compatible to apache configs, but
       you can also just use simple name/value pairs in your config
       files.

       In addition to the capabilities of a apache config file
       it supports some enhancements such as here-documents, C-
       style comments or multiline options. It is also possible to
       save the config back to disk, which makes the module a
       perfect backend for configuration interfaces.

       It is possible to use variables in config files and there
       exists also support for object oriented access to the
       configuration.


INSTALLATION

	to install, type:
	  perl Makefile.PL
	  make
	  make test
	  make install

	to read the complete documentation, type:
	perldoc Config::General
	perldoc Config::General::Extended
	perldoc Config::General::Interpolated

	see some example config files which can
	be parsed with Config::Genreal in the subdirectory
	t/cfg.*


UPDATE

	If you are updating from version 1.xx, you might be interested,
	that some things in the API has changed, which might force you
	to change your application code. These changes were necessary
	to clean up the module interface. Now it has a consistent
	"look and feel" and behaves more naturally. Therefore historic
	remains were removed.

	Here is a short list:

	   o it is no more possible to use Config::General::Extended
	     and Config::General::Interpolated directly. Instead use
	     Config::General and turn on -InterPolateVars and
	     -ExtendedAccess respectively.

	   o the method NoMultiOptions() is deprecated. Set the parameter
	     -AllowMultiOptions to false when calling new() to create
	     a new Config::General object.

	   o the method save() is deprecated. Use save_file() or
	     save_string() instead.

	   o the parameter -file is deprecated. Use -ConfigFile instead.

	   o the parameter -hash is deprecated. Use -ConfigHash instead.

	For a more detailed explanation of changes refer to the Changelog.


COPYRIGHT
       Config::General
       Config::General::Extended
           Copyright (c) 2000-2022 by Thomas Linden <[email protected]>

       Config::General::Interpolated
           Copyright (c) 2001 by Wei-Hon Chen <[email protected]>
	   Copyright (c) 2002-2022 by Thomas Linden <[email protected]>.

       This library is free software; you can redistribute it
       and/or modify it under the terms of the Artistic 2.0 license.

HOMEPAGE

       The homepage of Config::General is located at:

          http://www.daemon.de/config-general/

BUGS
       make test does currently not catch all possible scenarios.


AUTHOR
       Thomas Linden <tlinden |AT| cpan.org>


VERSION
	2.67