http://qs1969.pair.com?node_id=1184997


in reply to Guidance on updating apache config files

I'd be particularly interested to know if learning something like Template::Toolkit or other general purpose tools might allow me to intelligently handle updating config files in general.

Template Toolkit is precisely what I use when building Apache config files from within Perl. IMHO it is worth the (not inconsiderable) time required to learn it as it is so flexible you will subsequently find it useful for all manner of other scenarios.

Conversely for parsing the config files I recommend Apache::Admin::Config which seems to work reasonably well in most cases.

  • Comment on Re: Guidance on updating apache config files

Replies are listed 'Best First'.
Re^2: Guidance on updating apache config files
by nysus (Parson) on Mar 17, 2017 at 12:23 UTC

    Ok, thanks. That answers my questions perfectly. I was thinking about looking into Template::Toolkit but was worried about investing a lot of time learning something that ends up being unsuitable. I will go this route.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks