Difference between revisions of "Exercise 4.6"

From Earlham CS Department
Jump to navigation Jump to search
(New page: Return to Week 1 <b>Exercise 4.6 in <i>Beginning Perl for Bioinformatics</i></b> <br> <i>This problem is written as schematic only.</i> 1. Open the first file. 2. Read the first fil...)
 
Line 6: Line 6:
 
<i>This problem is written as schematic only.</i>
 
<i>This problem is written as schematic only.</i>
  
1. Open the first file.
+
*1. Open the first file.
2. Read the first file.
+
*2. Read the first file.
  2.1. Store this information in variable named "File1".
+
2.1. Store this information in variable named "File1".
3. Close the first file.
+
*3. Close the first file.
4. Open the second file.
+
*4. Open the second file.
5. Read the second file.
+
*5. Read the second file.
  5.1. Store this information in variable named "File2".
+
5.1. Store this information in variable named "File2".
6. Close the second file.
+
*6. Close the second file.
7. Print the contents of the first file, saying that you are doing so.
+
*7. Print the contents of the first file, saying that you are doing so.
8. Print the contents of the second file, saying that you are doing so.
+
*8. Print the contents of the second file, saying that you are doing so.
9. End program.
+
*9. End program.

Revision as of 23:06, 21 September 2009

Return to Week 1

Exercise 4.6 in Beginning Perl for Bioinformatics

This problem is written as schematic only.

  • 1. Open the first file.
  • 2. Read the first file.
  • 2.1. Store this information in variable named "File1".
  • 3. Close the first file.
  • 4. Open the second file.
  • 5. Read the second file.
  • 5.1. Store this information in variable named "File2".
  • 6. Close the second file.
  • 7. Print the contents of the first file, saying that you are doing so.
  • 8. Print the contents of the second file, saying that you are doing so.
  • 9. End program.