Date: Thu, 19 Jul 2001 17:53:16 -0500 (CDT) From: Mark Jacobson To: 810-088-05@uni.edu Subject: New link to myCGI.lib and testLib.cgi review Hi 088 students, The new link from our class web page at ~jacobson/c088.html shows the application and the library file code myCGI.lib and the Perl script code for testLib.cgi. I have added several new features to it that we did not do in lab. Note especially the myLib.cgi heading function that allows you to say: ------- print heading("UNI Panthers"), heading(2, "RAGBRAI rides again next week"), heading(4, "22 years ago today, Nicaraguan revolution"), heading(5, "PERL rules"); Output of the above:

UNI Panthers

RAGBRAI rides again next week

22 years ago today, Nicaraguan revolution

PERL rules
The guestBook.lib and testLib.cgi and myCGI.lib files will all be discussed tommorrow. I have prepared a handout of the myCGI.lib and testLib.cgi files, along with the guestBook.lib file. The only other thing we did today was the sleep function, where we sleep 1; to pause 1 second or sleep 5; to pause for 5 seconds..... We did this in the context of nested loops: for ($i = 1; $i <= 12; $i++) { $stars = ""; for ($jj = 1; $jj <= $i; $jj++) { $stars = $stars . "*"; } if ($i < 10) { print " "; } print "$i: $stars \n"; sleep 1; } print "That's all for now! \n\n"; sleep 5; print "Bye bye! \n\n"; See you on Friday in class. Friday should be a good review for the Monday exam, but there will be alot of new stuff mixed in with the old concepts too. Mark