http://www.perlmonks.org?node_id=1080625


in reply to HOW TO MANIPULATE A TEXT FILE IN PERL

One writes a Perl program that does the following:
  1. Open the input Text file and check for success
  2. Open the output Text file and checks for success
  3. Read the input Text file a line at a time
  4. Perform your manipulation of the text
  5. Write the manipulated line to the output Text file
  6. Read the next line of the input Text file. (Hint: use a Looping construct)
  7. Close input Text file and check for success
  8. Close output Text file and check for success
  9. Turn in you homework assignment
  10. Profit

----
I Go Back to Sleep, Now.

OGB

  • Comment on Re: HOW TO MANIPULATE A TEXT FILE IN PERL