You've certainly chosen an odd way to code your solution.
Is there any reason you're invoking perl four times when once would do?
I suggest you convert your code to a simple loop to locate the line, and then perform the substitution.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Replace specific lines specific range of characters.
by roboticus
in thread Replace specific lines specific range of characters.
by govindkailas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |