Date: Thu, 05 Jul 2001 12:51:32 -0500 (CDT) From: Mark Jacobson To: 810-088-05@uni.edu Subject: Quiz #3 tommorrow (Friday, July 6th), Next Assignment too... Hi 088 students, The PERL/CGI quiz scheduled for tommorrow (Friday, July 6th) might allow you to use a cheat sheet. Your cheat sheet: 1. Must be hand-written in ink or pencil, no photocopying or printer output is allowed. 2. Can and should be both sides of one sheet of standard 8 1/2 inch by 11 inch paper. You are limited to one sheet of paper, but get to cover BOTH SIDES of the paper with notes and a summary of the class so far. 3. Will be used if the coin comes up heads, will NOT be used if the coin flip comes up tails. Heads - you get to use it. Tails - you can't use it. We will try this cheat sheet idea for the next two quizzes and see how it works. Guess what? If the coin does NOT come up heads and you do NOT get to use your cheat sheet during the quiz, the very act of having written one and carefully organized and summarized all the material you have learned so far in the Perl/CGI course will enable you to do much better on the quiz, EVEN WITHOUT IT. And that is a fact, Jack! Biction. Consume some ink and paper. If the ink flows, the understanding, comprehension and masters grows. ---------------------------------------------------------------------- Today's handouts for the lab class are taped to my office door, in case you had to miss class. 323 Wright Hall for the two handouts. ---------------------------------------------------------- Your next assignment is to adapt the colors.cgi techniques for your own random quote or random fortune/fact program. We will do the followup and talk more about that tommorrow in class, before and/or after the quiz. You will use unshift and pop (or are welcome to use push and shift instead, if you want) to keep track of which quotes have been recently shown to the user. You will store this information in a HIDDEN FORM field, like we did today. The hidden field value might be 2:8:5:9 which would mean that the four most recently viewed quotes were from files at positions [2], [8], [5], and [9] in the array @quotes. If you are using unshift and pop, then $quotes[2] would be the most recent, and $quotes[9] would be the longest ago view quote, i.e. 3 quotes ago in the past. ---------------------------------------------------------- Mark