<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 21, 2013 at 7:50 AM, Zeno Tajoli <span dir="ltr"><<a href="mailto:z.tajoli@cineca.it" target="_blank">z.tajoli@cineca.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have to define a configuration file for Koha.<br>
Which perl module do we want to prefer for config files ?<br>
YAML (like system prefences) or XML::Simple (like koha-conf.xml) ?<br></blockquote></div><div class="gmail_extra"><br></div>Well, the choice seems to be YAML vs. XML as file formats -- there are much better XML parsers than XML::Simple available.  JSON would be an option as well, though not the most friendly.  Ditto for Perl-as-config-file-format.  One downside of YAML is that it can be a bit too sensitive to mistakes in whitespace.<div>
<br></div><div>The nit about XML processors aside, how complicated is the structure of the configuration data you need to express?  And how frequently would a human need to look at it?  If the configuration you need to express boils down to a hash map, I suggestion a simple key-value format such as a properties file or even an INI file.</div>
<div><br></div><div>Also, is there anything preventing the configuration from living in the database?</div><div><br></div><div>Regards,</div><div><br></div><div>Galen</div>-- <br><div dir="ltr"><div>Galen Charlton</div><div>
Manager of Implementation</div><div>Equinox Software, Inc. / The Open Source Experts</div><div>email:  <a href="mailto:gmc@esilibrary.com" target="_blank">gmc@esilibrary.com</a></div><div>direct: +1 770-709-5581</div><div>
cell:   +1 404-984-4366</div><div>skype:  gmcharlt</div><div>web:    <a href="http://www.esilibrary.com/" target="_blank">http://www.esilibrary.com/</a></div><div>Supporting Koha and Evergreen: <a href="http://koha-community.org" target="_blank">http://koha-community.org</a> & <a href="http://evergreen-ils.org" target="_blank">http://evergreen-ils.org</a></div>
</div>
</div></div>