nithins has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, How to replace string after matching with a certain word in a file?
For example, i have a string in file say "user={hhhfj}jshdfjhdfjh\=" i want to match for "user=" , if match is successful i want to replace this "{hhhfj}jshdfjhdfjh\=" string with my own value & new value should be written to file i,e "user=newvalue".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Replace a string after a word
by kcott (Archbishop) on Jan 06, 2014 at 15:04 UTC | |
Re: Replace a string after a word
by walto (Pilgrim) on Jan 06, 2014 at 09:17 UTC | |
Re: Replace a string after a word
by Anonymous Monk on Jan 06, 2014 at 09:18 UTC | |
Re: Replace a string after a word
by nithins (Sexton) on Jan 07, 2014 at 07:16 UTC |
Back to
Seekers of Perl Wisdom