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

Files and I/O in perlintro shows you how to print to files. Similar to the input file, open the output file (using a different file handle) before the loop, print to the file inside the loop, and close the file after the loop.

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