http://qs321.pair.com?node_id=1232617


in reply to Re^4: Prepocessing perl code / substing variables
in thread Prepocessing perl code / substing variables

Probably any of the template modules could handle it.

However, I also think you would be better off using a configuration file. Even using a template to generate the configuration file would be better than messing with the Perl source code. Each container would get a configuration file suited to it's needs.

Also, by using configuration files, it is far easier to make changes. Without configuration files, the package would have to be uninstalled then re-installed.

  • Comment on Re^5: Prepocessing perl code / substing variables

Replies are listed 'Best First'.
Re^6: Prepocessing perl code / substing variables
by nataraj (Sexton) on Apr 17, 2019 at 20:08 UTC

    Probably any of the template modules could handle it.

    Thanx. Actually that was the most useful advice. I found a https://metacpan.org/pod/Text::Template::Simple module that do exactly what I need. So there is no need to write it myself and do some strange regexps. Thanks. Actually I do not understand why I did not do that search request myself O_o

      Actually I do not understand why I did not do that search request myself O_o

      It happens to everyone, that's what we're here for :-)