Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

HOW TO MANIPULATE A TEXT FILE IN PERL

by fandaman (Initiate)
on Apr 01, 2014 at 14:24 UTC ( [id://1080573]=perlquestion: print w/replies, xml ) Need Help??

fandaman has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: HOW TO MANIPULATE A TEXT FILE IN PERL
by Old_Gray_Bear (Bishop) on Apr 01, 2014 at 18:45 UTC
    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

Re: HOW TO MANIPULATE A TEXT FILE IN PERL
by frozenwithjoy (Priest) on Apr 01, 2014 at 14:31 UTC

    Not quite sure what it is, but something tells me that you are trying to get people to do your homework assignment.

    EDIT: and now it's gone!

Re: HOW TO MANIPULATE A TEXT FILE IN PERL
by bigj (Monk) on Apr 01, 2014 at 17:55 UTC
    The first link of a google search could be a start :-)

    Greetings,
    Janek

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found