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.
Install MarpaX::Demo::StringParser as you would for any
sudo cpan MarpaX::Demo::StringParser
or unpack the distro, and then either:
perl Build.PL ./Build ./Build test sudo ./Build install
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.
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:
MarpaX::Demo::StringParser was written by Ron Savage <firstname.lastname@example.org> 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