This module opens a config file and parses its contents for you. After parsing
the module returns a hash structure that 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 with
Apache config files, but you can also just use simple name/value pairs in your
config files.
In addition to the capabilities of an Apache config file, it supports some
enhancements such as here-documents, C-style comments or multi-line options. It
is also possible to save the config back to disk, which makes the module a
perfect back-end for configuration interfaces. It is possible to use variables
in config files and there also exists support for object oriented access to the
configuration.
Provides
Requires
License
Artistic-2.0
Changelog
* Tue Nov 17 2026 Paul Howarth <paul@city-fan.org> - 2.68-1
- Update to 2.68 (rhbz#2574364)
- Validate incoming config hashes, forbid include and comments
(https://codeberg.org/scip/Config-General/issues/9, CVE-2026-129820,
CVE-2026-129821)
* Wed Jan 08 2025 Paul Howarth <paul@city-fan.org> - 2.67-1
- Update to 2.67
- Fix tests (add missing file to dist tarball) (GH#5, GH#6)
* Wed Jan 08 2025 Paul Howarth <paul@city-fan.org> - 2.66-1
- Update to 2.66 (rhbz#2336204)
- Add support for quoting values containing whitespace using the new flag
-AlwaysQuoteOutput (GH#1)
- Fix exporter setup, use "our" where appropriate (GH#2)
- Add upstream test file missing from release tarball (GH#5)
* Fri Nov 10 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.65-6
- Update license to SPDX format
- Use %{make_build} and %{make_install}
* Sun Apr 10 2022 Paul Howarth <paul@city-fan.org> - 2.65-1
- Update to 2.65
- Copy 'default' hash, avoid modifying it (CPAN RT#142095)
- Catalyst subversion repository no longer exists, so code moved to GitHub:
https://github.com/TLINDEN/Config-General
- Clarified license, which is now Artistic License 2.0 (CPAN RT#132893)
- Correctly include directories (CPAN RT#139261)
- Remove the comma from legal variable names, added mandatory start
characters a-zA-Z0-9 (CPAN RT#118746); added a section in the POD to
clarify this
- Fix IfDefine code (CPAN RT#119160)
* Sun Apr 10 2022 Paul Howarth <paul@city-fan.org> - 2.63-18
- Spec tidy-up
- Use author-independent source URL
- Re-format %description to wrap at 80 columns
- Use patch rather than scripted iconv to fix Changelog character encoding
- Drop redundant buildroot cleaning in %install section
- Simplify find command using -delete
- Fix permissions verbosely
- Make %files list more explicit
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.63-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.63-9
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.63-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.63-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.63-6
- Perl 5.28 rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.63-5
- Rebuilt