http://www.perlmonks.org?node_id=585634


in reply to Re: Config Files in Perl
in thread Config Files in Perl

I prefer using XML-based config files and using, say, XML::Simple to parse the file. It is just about as easy as parsing name=value files.

I sort-of second that, except that I'd use YAML. Even if one doesn't know it (I don't really), it should be easy enough to look at some samples and imitate them, or instruct one about how to do so in a few words. It's more human readable and writable IMHO.

Replies are listed 'Best First'.
Re^3: Config Files in Perl
by geekphilosopher (Friar) on Nov 22, 2006 at 22:37 UTC
    I agree, YAML is great. Loading and saving a config is dead easy, and the config is very human read/writable.