#!/usr/bin/perl -w use CGI qw(:all) ; my $today; my $thismonth; my $thisyear; chomp($today = `date +"%-d"`); chomp($thismonth = `date +"%-m"`); chomp($thisyear = `date +"%Y"`); my $cal; my $dir; $cgi = CGI->new; $dir=$cgi->param("dir"); if($cgi->param("today") && $cgi->param("thismonth") && $cgi->param("thisyear")) { if($dir eq "back") { $today=$cgi->param("today"); $today=$today-1; } } print $cgi->header,$cgi->start_html("$today.$thismonth.$thisyear"); print<
$today $thismonth $thisyear