In class Programming Exercises: CGI

1. Write a simple CGI script that returns a greeting message when you click the Submit button.

You have previously written programs for the two tasks in exercises 2 and 3. Modify them so they work by CGI: have an HTML page with a form that asks for the proper input, then have a Perl (.cgi) program to process the input and return an HTML page with the proper output.

2. Write a program that translates a 3 base DNA code into the corresponding amino acid. Use a hash that has the triplet codes as the key and the amino acid ( 3 letter code) as value. Convert the input to upper case.

3. Write a program that has a subroutine that takes a list of numbers and returns their sum. The subroutine should be capable of dealing with any length of list.