Chapter 12: CGI/Perl Part II

pages 1 - 25

Scalar Variables

Assignment Statement

Arithmetic Operators

Connecting an HTML form to a CGI Script

print Statement

printf Statement

Pattern Matching

Wednesday Exercise

10 points. Work a modified version of exercise 12-4 from the text. The inputs are

The outputs are

Thursday Exercise (Regular Expressions)

10 points. Complete the perl script below such that it adds / to the end of the hr, img, br and input tags if the ending slash is missing. When you are finished, copy your solution onto Jack's memory stick.