Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I enjoy Config::General [], wherein the configuration you show would be laid out thus:

    addressbook App::Addex::AddressBook::Apple

    <output App::Addex::Output::Mutt>
        filename mutt/alias-abook

    <output App::Addex::Output::Procmail>
        filename procmail/friends.rc

    <output App::Addex::Output::SpamAssassin>
        filename spamassassin/whitelists-abook

    • That looks okay, but the syntax is a little more in my face than I'd want. Also, Config::General has about a million options, which means reading too much documentation.

      Still, it looks like a useful module to know about for the future.
      • It’s nosier than INI files, that’s true. With longer sections, the angle-bracket noise would disappear in the signal, though. I find the added expressivity well worth the bit of extra noise, and the syntax feels very pleasant – far less noisy than XML or JSON but much easier to write than YAML and a good deal more expressive than INI. It’s bullseye on the sweet spot for me.

        • Yes, I could see using it instead of YAML for configuration of something that requires a more complex structure than Addex did. I 3 YAML, but I'm starting to get to the point where the bugs in the various libraries for it make me want to stop using it instead of help fix it. Hopefully YAML::LibYAML will help.