#! /usr/bin/perl -w use strict; use CGI qw(param); #this has the head_foot() function require "templates/standard_templates.pl"; use vars qw($head $foot); my ($head,$foot) = head_foot(); if (param("page") eq "top") { page_top(); exit; } elsif (param("page") eq "bottom") { page_bottom(); exit; } else { page_main(); } sub page_main { print < $foot EOF } sub page_top { print <TOP OF THE PAGE $foot EOF } sub page_bottom { print <THIS IS THE BOTTOM $foot EOF }