Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: HOW TO MANIPULATE A TEXT FILE IN PERL

by Old_Gray_Bear (Bishop)
on Apr 01, 2014 at 18:45 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found