/protein/edit.cgi

This script is specialized for a particular type of data and knows how to make an edit. It gets all the form data and because it is protein/edit.cgi, knows how to deal with proteins.

But it does not how to display the result. It hands off that task to display.cgi with just the 'collection' field from the form.

Code Snippit



#!/usr/local/bin/perl



use strict;

use Config;

use Some_Modules_Here;



	&Flush_Buffers_Quickly ("$ENV{'LOGDIR'}/collector2.log");



	($cgi_data{'collection'}) = &main ($cgi_data{'collection'});



	print "Location: display.cgi?collection=$cgi_data{'collection'}\n\n";