in reply to Config Files in Perl
Some thoughts:
- #1 only allows single options e.g name=value. You could use Config::INI::Simple or something similar
- numbers 2 and 3 can be very dangerous if you make mistakes in them or if people who edit them try to do "bad things"
- 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.
- You could use Config::General or Config::Generic for more complex configurations, but why not just go with XML?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Config Files in Perl
by blazar (Canon) on Nov 22, 2006 at 22:34 UTC | |
by geekphilosopher (Friar) on Nov 22, 2006 at 22:37 UTC | |
Re^2: Config Files in Perl
by chromatic (Archbishop) on Nov 22, 2006 at 22:26 UTC | |
by traveler (Parson) on Nov 22, 2006 at 23:06 UTC | |
by Firefly258 (Beadle) on Nov 23, 2006 at 07:29 UTC | |
by traveler (Parson) on Nov 23, 2006 at 17:15 UTC | |
by chromatic (Archbishop) on Nov 23, 2006 at 18:44 UTC | |
by Firefly258 (Beadle) on Nov 23, 2006 at 23:35 UTC |
In Section
Seekers of Perl Wisdom