colox has asked for the wisdom of the Perl Monks concerning the following question:
hi perlmonks, would like to seek your expertise on how to code this:
if i have a config/look-up file containing like below:
AAA = AAA123 BBB = XYZ999 DEF = ANYOTHER
then i have multiple files where I would like to replace the string containing the string patterns from the left side above & replace with the string on the right. my objective is to keep the base code & just update the look-up file of the string pattern to search & the corresponding string to replace in the files.
I look forward to your valuable inputs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: string replacement
by Eily (Monsignor) on Sep 12, 2017 at 15:41 UTC | |
by haukex (Archbishop) on Sep 12, 2017 at 18:57 UTC | |
by Eily (Monsignor) on Sep 12, 2017 at 20:44 UTC | |
by colox (Sexton) on Sep 13, 2017 at 16:06 UTC | |
|
Re: string replacement
by huck (Prior) on Sep 12, 2017 at 15:31 UTC |