in reply to How do I modify a line within the file itself?

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?

  • Comment on Re: How do I modify a line within the file itself?