Classes 32-33 review (07/25-26/2002)

  1. PERL exam STUDY GUIDE and practice questions. Created in summer of 2001, but still very useful summary of what we have done so far.

  2. PERL EXAM ON MONDAY, email note.

  3. Click the JPG graphic file to link to a screen snapshot of the PERL code that generated the OL ordered list. This is a solution to a Friday group exercise. It is a good review of three things:

    • Using split to create an array from a ":" separated string.
    • Defining a function (a sub) that accepts arguments when it is called and uses the return statement to return a string value, the actual OL ordered list.
    • Using a foreach loop to process each and every element in either an array or a hash.

      VIP: Can you rewrite the foreach loop in the solution as a for loop? Be able to do it either way!

      Want to see both sub code and output it produced.

  4. Review of the Unix input and output redirection and pipes concepts. The unix uniq and wc and cat and spell commands and programs.