Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://oreilly.com/catalog/9780596001735/" rel="noreferrer">Perl Best Practices</a> warns against exactly what you want. It states that config files should be simple and avoid the sort of baroque features you desire. It goes on to recommend three modules (none of which are Core Perl): <a href="http://search.cpan.org/dist/Config-General/General.pm" rel="noreferrer">Config::General</a>, <a href="http://search.cpan.org/dist/Config-Std/lib/Config/Std.pm" rel="noreferrer">Config::Std</a>, and <a href="http://search.cpan.org/dist/Config-Tiny/lib/Config/Tiny.pm" rel="noreferrer">Config::Tiny</a>.</p> <p>The general rational behind this is that the editing of config files tends to be done by non-programmers and the more complicated you make your config files, the more likely they will screw them up.</p> <p>All of that said, you might take a look at <a href="http://www.yaml.org/" rel="noreferrer">YAML</a>. It provides a full featured, human readable<code>*</code>, serialization format. I believe the currently recommend parser in Perl is <a href="http://search.cpan.org/dist/YAML-LibYAML/lib/YAML/XS.pm" rel="noreferrer">YAML::XS</a>. If you do go this route I would suggest writing a configuration tool for end users to use instead of having them edit the files directly.</p> <p>ETA: Based on Chris Dolan's answer it sounds like YAML is the way to go for you since Catalyst is already using it (.yml is the de facto extension for YAML files).</p> <p><code>*</code> I have heard complaints that blind people may have difficulty with it</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload