Config-General-2.65/ 0000755 0001750 0001750 00000000000 14224545462 012714 5 ustar scip scip Config-General-2.65/example.cfg 0000644 0001750 0001750 00000002776 11526736556 015054 0 ustar scip scip # -*-sh-*- (ignore, this is just for my operation system, emacs,
# to function properly)
#
# This is an example of a config file supported by Config::General.
# It shows almost all features of the format and its flexibility.
#
# To try it, install Config::General as usual and execute the
# following perlscript:
#
# use Config::General;
# use Data::Dumper;
# my %conf = ParseConfig(-ConfigFile => "example.cfg", -InterPolateVars => 1);
# print Dumper(\%C);'
#
# This will parse the config and print out a stringified version
# of the hash it produces, which can be used in your program.
#
/*
* c-style comment
*/
# variable assignment
option1 = blah
option2 blubber
option3 = "something special" # this is a comment
option4 = parameters can be written on \
multiple lines
# duplicate options will be made into an array
huc = 12
huc = 17
huc = 133
# options can be organized in blocks too
user = hans
server = mc200
db = maxis
passwd = D3rf8d
# nested blocks are no problem
index int(100000)
name char(100)
prename char(100)
status int(10)
# named blocks can also be used
# block names containing whitespaces must be quoted
<"kyla cole">
# blocks maybe empty
"kyla cole">
# here-docs are fully supported
usage <