NAME
MarpaX::Demo::StringParser::Config - A config manager for use by MarpaX::Demo::StringParser
Synopsis
End-users do not need to call the methods in this module.
See MarpaX::Demo::StringParser.
Description
MarpaX::Demo::StringParser::Config provides a config manager for use by MarpaX::Demo::StringParser.
Installation
Install MarpaX::Demo::StringParser as you would for any Perl
module:
Run:
cpanm MarpaX::Demo::StringParser
or run:
sudo cpan MarpaX::Demo::StringParser
or unpack the distro, and then either:
perl Build.PL
./Build
./Build test
sudo ./Build install
or:
perl Makefile.PL
make (or dmake or nmake)
make test
make install
Methods
read()
read() is called automatically by new(). It does the actual reading of the config file.
If the file can't be read, die $string
is called.
The path to the config file is determined by:
path(File::HomeDir -> my_dist_config('MarpaX-Demo-StringParser'), '.htmarpax.demo.stringparser.conf');
The author runs scripts/copy.config.pl, which uses similar code, to move the config file from the config/ directory in the disto into an OS-dependent directory.
The run-time code uses this module to look in the same directory as used by scripts/copy.config.pl.
Support
Email the author, or log a bug on RT:
https://rt.cpan.org/Public/Dist/Display.html?Name=MarpaX::Demo::StringParser.
Author
MarpaX::Demo::StringParser was written by Ron Savage <ron@savage.net.au> in 2013.
Home page: http://savage.net.au/index.html.
Copyright
Australian copyright (c) 2013, Ron Savage.
All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Artistic License, a copy of which is available at:
http://www.opensource.org/licenses/index.html