Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/book/config-ini-reader-multiline
Parser for .ini files with line continuations
https://github.com/book/config-ini-reader-multiline
Last synced: about 1 month ago
JSON representation
Parser for .ini files with line continuations
- Host: GitHub
- URL: https://github.com/book/config-ini-reader-multiline
- Owner: book
- Created: 2015-03-31T23:41:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T09:13:15.000Z (over 2 years ago)
- Last Synced: 2024-10-03T12:36:23.373Z (4 months ago)
- Language: Perl
- Homepage: http://metacpan.org/pod/Config::INI::Reader::Multiline
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
Config::INI::Reader::Multiline - Parser for .ini files with continuation linesSYNOPSIS
If act.ini contains:[general]
conferences = ye2003 fpw2004 \
apw2005 fpw2005 hpw2005 ipw2005 npw2005 ye2005 \
apw2006 fpw2006 ipw2006 npw2006
cookie_name = act
searchlimit = 20And your program does:
my $config = Config::INI::Reader::Multiline->read_file('act.ini');
Then $config contains:
{
general => {
cookie_name => 'act',
conferences => 'ye2003 fpw2004 apw2005 fpw2005 hpw2005 ipw2005 npw2005 ye2005 apw2006 fpw2006 ipw2006 npw2006',
searchlimit => '20'
}
}DESCRIPTION
Config::INI::Reader::Multiline is a subclass of Config::INI::Reader that
offers support for line continuations, i.e. adding a "\"
(backslash-newline) at the end of a line to indicate the newline should be
removed from the input stream and ignored.In this implementation, the backslash can be followed and preceded by
whitespace, which will be ignored too (just as whitespace is trimmed by
Config::INI::Reader.AUTHOR
Philippe Bruhat (BooK),COPYRIGHT
Copyright 2014-2015 Philippe Bruhat (BooK), all rights reserved.LICENSE
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.