PERL Handout ‐ January 10 (due January 17)

Document Sample
PERL Handout ‐ January 10 (due January 17) Powered By Docstoc
					                                                 Name:____________________
PERL Handout #3 – January 24 (due February 3)

Review Questions

1. What is a file handle?



2. What is the file handle for the standard input stream?


   For the standard output stream?



3. What is the difference between the following two open statements?


   open(FILE_ONE, ">FILE_ONE.DAT");


   open(FILE_TWO, ">>FILE_TWO.DAT");


4. What character would you use in a regular expression to match the beginning of a
   line?

   To match the end of a line?


   To match white space?


5. What is the syntax for the match operator?


   For the substitution operator?