in reply to AppConfig or XML::Simple for All my modules?

An important fact of configuration files is that they contain configuration values. Which most often needs to be commented. Oh, yes.

I don't know about AppConfig, but commenting values in an XML file isn't that easy (or if it is, please show me how to do :).

In a few XML config files I have, I enter additional key-value pairs just to keep them commented. That's an obvious workaround I'd like to avoid.

/J

  • Comment on Re: AppConfig or XML::Simple for All my modules?

Replies are listed 'Best First'.
Config comments
by lachoy (Parson) on Feb 06, 2002 at 22:36 UTC

    This is a very good point. One of the other major problems I have (besides those noted above) with reading and then re-serializing Perl data structures is that you lose all comments. When I wrote (yet another) INI parser for OpenInteract I borrowed the logic from Config::IniFiles for keeping the comments with the appropriate block when the config is written out. Works great.

    (Yes, I had very good reasons for creating another INI parser. :-)

    Chris
    M-x auto-bs-mode