MarpaX::Demo::StringParser::Config - A config manager for use by MarpaX::Demo::StringParser
End-users do not need to call the methods in this module.
See MarpaX::Demo::StringParser.
MarpaX::Demo::StringParser::Config provides a config manager for use by MarpaX::Demo::StringParser.
Install MarpaX::Demo::StringParser as you would for any Perl module:
Perl
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
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.
die $string
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.
Email the author, or log a bug on RT:
https://rt.cpan.org/Public/Dist/Display.html?Name=MarpaX::Demo::StringParser.
MarpaX::Demo::StringParser was written by Ron Savage <ron@savage.net.au> in 2013.
Home page: http://savage.net.au/index.html.
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
To install MarpaX::Demo::StringParser, copy and paste the appropriate command in to your terminal.
cpanm
CPAN shell
perl -MCPAN -e shell install MarpaX::Demo::StringParser
For more information on module installation, please visit the detailed CPAN module installation guide.