vallecha420 has asked for the wisdom of the Perl Monks concerning the following question:
1.Using a text editor, create a text file containing five lines like this:
line one line two line three line four line five
These lines are indented in this document, but in your test file the only spaces in the file should be the single space between the words on each line. Your test program will be processing this file. Print the contents of the file in the report now for reference.
2. Printing the file. Create a simple perl program that will open the file, will assign the first line to a variable using something like $line = <TEST-INPUT>; , and then will print the contents of the variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: i am suppsed to do following. i am super new. can anyone help me?
by GrandFather (Saint) on Jan 27, 2016 at 20:27 UTC | |
|
Re: i am suppsed to do following. i am super new. can anyone help me?
by Anonymous Monk on Jan 27, 2016 at 20:22 UTC | |
by Anonymous Monk on Jan 27, 2016 at 20:26 UTC | |
by vallecha420 (Initiate) on Jan 27, 2016 at 20:58 UTC | |
by davido (Cardinal) on Jan 28, 2016 at 02:45 UTC |