CGI Scripting

Lincoln Stein

Genome Informatics

Suggested Reading

Chapters 2, 5 & 9 of How to Set Up a Web Site.

Lecture Notes

Retrieving WWW Pages from Perl

CGI Exercises

Problem #1

Write a CGI script that prompts the user for his or her name and age. When the user presses the submit button, convert the age into "dog years" (divide by 7) and print the result.

Problem #2

Accept a DNA sequence and break it into codons (like the codons.pl program).

Extra credit: Translate the codons into protein.


Genome Informatics
Lincoln D. Stein, lstein@cshl.org
Cold Spring Harbor Laboratory
Last modified: Fri Oct 20 10:45:48 EDT 2000