Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 surveying the Monastery: (4)
As of 2014-11-21 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (104 votes), past polls