Ratazong has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks

I need to read some config-files. The format should be human-readable/writable, but I am free to choose any one I need. It should however be able to represent "tree-structures". e.g.:

Project: P_1 Key1: 1 Key2: 2 Type: xyz Project: P_2 Key1: 22 Key2: 33 Type: abc
I need to read that file into a hash, and want to access it with code like my $key = $config{P_1}{key1}.

The list of config-modules in CPAN is overhelming. Which ones would you recommend for that task?

Thanks in advance! Rata

Replies are listed 'Best First'.
Re: Best Config file module?
by Anonymous Monk on Mar 15, 2011 at 11:02 UTC
Re: Best Config file module?
by Anonymous Monk on Mar 15, 2011 at 11:05 UTC