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

I am writing an application to modify ini files on existing embedded architectures.

Each platform is configured using a variety of ini files in various different locations.

The application needs to preserve comments in the file since they contain (among other things) CVS information.

My problem is that there are a large number of ini/config handling modules on CPAN Config::IniFiles, AppConfig, Config::IniHash, Config::Tiny, Config::Simple, Config::Backend, etc.

As such, I am looking for recommendations from anyone who has used some of these modules and has a preference for one over the other.

I don't have any control over this architecture so solutions such as YAML or XML aren't an option.

Thanks.

  • Comment on Recommendations for an INI handling module

Replies are listed 'Best First'.
Re: Recommendations for an INI handling module
by TStanley (Canon) on Jan 07, 2005 at 17:57 UTC
    I have used Config::IniFiles and Config::Simple and found them to be easy to use and work with. I also like using Config::Yacp, but then, I wrote that module. :-D

    TStanley
    --------
    The only thing necessary for the triumph of evil is for good men to do nothing -- Edmund Burke
Re: Recommendations for an INI handling module
by meredith (Friar) on Jan 08, 2005 at 19:50 UTC

    I just downloaded and used Config::IniFiles yesterday -- I didn't like the OO interface of it very much, but I didn't want to use the tied-hash interface in case someone who didn't understand that feature came along to make changes. It supports a few extensions to the usual Windows INI format with things like here-docs and grouped sections, but it's easy to avoid getting any of that in your output. Overall, it got the job done quickly, with a minimum of BS.

    mhoward - at - hattmoward.org
Re: Recommendations for an INI handling module
by data64 (Chaplain) on Jan 08, 2005 at 19:59 UTC