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.
In reply to Re: How do I modify a line within the file itself?
by Anonymous Monk
in thread How do I modify a line within the file itself?
by newbie4659
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |