home -- outline -- lectures -- assignments -- discussion -- tips -- links -- | |
![]() ![]() | |
![]() |
Searching a Movie DatabaseOne of the simplest uses of a form is to search a predefined database. For this assignment, you will write a CGI script that will accept the form and process it.We've created a simple database of films, directors and the years in which these films were made. Your assignment is to write a Perl program that accepts the name of the director or the film or the year in which it was made from the following form and search the database. The database is available as the file /sgihomes/pradyut/html/hw5/database The fields are separated by the pipe symbol (|) and have the following format. Name of Director|Name of Film|Year Made Sergei Eisenstein|Ivan the Terrible, Part One|1945 Akira Kurosawa|No Regrets for My Youth|1946 Alfred Hitchcock|Rich and Strange|1932 Luis Bunuel|Land Without Bread|1932 Akira Kurosawa|Not Yet|1993 Luis Bunuel|Young One, The| Alfred Hitchcock|Waltzes from Vienna|1933 Kathryn Bigelow|Set-Up, The|1993 Akira Kurosawa|Yojimbo|
|