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

Config::Apachish::Reader - Read Apachish configuration files

VERSION

This document describes version 0.03 of Config::Apachish::Reader (from Perl distribution Config-Apachish-Reader), released on 2016-03-11.

SYNOPSIS

 use Config::Apachish::Reader;
 my $reader = Config::Apachish::Reader->new(
     # list of known attributes, with their default values
 );
 my $config_array = $reader->read_file('config.conf');

DESCRIPTION

This module reads Apachish configuration files (a format mostly compatible with Apache webserver configuration format). It is a minimalist alternative to the more fully-featured Config::Apachish. It cannot write/modify Apachish files and is optimized for low startup overhead.

ATTRIBUTES

METHODS

new(%attrs) => obj

$reader->read_file($filename) => hash

Read configuration from a file. Die on errors.

$reader->read_string($str) => hash

Read configuration from a string. Die on errors.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Config-Apachish-Reader.

SOURCE

Source repository is at https://github.com/perlancar/perl-Config-Apachish-Reader.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Config-Apachish-Reader

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Apachish - specification

Config::Apachish - round-trip parser for reading as well as writing Apachish documents

Apachish::Examples - sample documents

Prior arts: Config::ApacheFormat, Apache::ConfigFile, Config::General, Config::ApacheExtended. A more in-depth comparison between these modules and Apachish will be made in the future.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

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