Even though this is perlmonks, I'd likely use sed to accomplish replacing in-line text in a file. Granted I'm not a sed expert -- barely a sed beginner, I'd look into that instead.
Is there a requirement to use Perl, or some other reason not to use a (usually) built-in tool like sed?
In reply to Re: How do I modify a line within the file itself?
by sierpinski
in thread How do I modify a line within the file itself?
by newbie4659
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |