Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Prepocessing perl code / substing variables

by RonW (Parson)
on Apr 15, 2019 at 23:23 UTC ( #1232617=note: print w/replies, xml ) Need Help??


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 (Novice) 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 :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1232617]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2021-01-19 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?