in reply to Re^2: XML for Dummies
in thread XML for Dummies

You missed the requirement that the configuration be accessible in 2 different languages. A CPAN module will not help a bash script.

As for configuration file parsing, I'm not a fan of anything that I've seen on CPAN yet. Admittedly I haven't looked in years, but I still hold to the opinion that I expressed in Re (tilly) 6: using strict and a config file.

Replies are listed 'Best First'.
Re^4: XML for Dummies
by massa (Hermit) on Jul 12, 2008 at 15:14 UTC
    Config::Any (what I personally use) will read a file with only keys=values (it will consider it as an INI file, without "directories") and in bash, you just source such a file.

    IIRC you can't read a .xml file under bash, either, so XML is kind of off-limits for said requirement. I respect your opinion, but I still think that inventing the wheel for reading config files is a waste of time.

    As for your mentioned post, my configs do all four items you put there, just loading with Config::Any and traversing in the appropriate order.

    []s, HTH, Massa
      You are right that Config::Any works perfectly in this case. Thank you for directing my attention to that.