Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: HOW TO MANIPULATE A TEXT FILE IN PERL

by Old_Gray_Bear (Bishop)
on Apr 01, 2014 at 18:45 UTC ( #1080625=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1080625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2015-07-07 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls