NAME
Config::Lite - Load config from file to hash.
SYNOPSIS
Once you make a config file like this:
# /etc/myconfig.conf
test1=123
test2=abc
right=left
pop = bad [
so =gogogo
lover = yejiao
#sharped=somevalue
You can code like this:
use Config::Lite qw(load_config);
my %config = load_config("/etc/myconfig.conf");
You got this:
# %config = (
# "test1" => 123,
# "test2" => "abc",
# "right" => "left",
# "pop" => "bad [",
# "so" => "gogogo",
# "lover" => "yejiao",
# );
DESCRIPTION
Simple config load module. Code is clean and no dependence, so the module is easy to use and install. flock inside.
EXPORT
None by default.
SEE ALSO
AUTHOR
Chen Gang, <yikuyiku.com@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2013 by Chen Gang
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.