snackpie has asked for the wisdom of the Perl Monks concerning the following question:
So, in the file I need to find the line starting with :#define MYVERSION 11
and replace 11 with 11+1 = 12. Any tips, snippets related to this would be helpful. Thanks.#define MYVERSION
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replace text in file
by kcott (Archbishop) on Apr 17, 2014 at 07:00 UTC | |
|
Re: Replace text in file
by GrandFather (Saint) on Apr 17, 2014 at 06:54 UTC | |
|
Re: Replace text in file
by Laurent_R (Canon) on Apr 17, 2014 at 07:45 UTC | |
|
Re: Replace text in file
by johngg (Canon) on Apr 17, 2014 at 12:04 UTC | |
|
Re: Replace text in file
by Yaerox (Scribe) on Apr 17, 2014 at 08:18 UTC | |
by Laurent_R (Canon) on Apr 17, 2014 at 10:44 UTC | |
by kcott (Archbishop) on Apr 18, 2014 at 01:56 UTC | |
by Yaerox (Scribe) on Apr 17, 2014 at 11:30 UTC |