in reply to CGI Server Error

Server error? Is this a command line Perl script or a CGI script? If it's CGI, don't forget that the first thing you have to print to STDOUT is the header:
print "Content-type: text/html\n\n"; # rest of code
Or better yet, use CGI!
use CGI ':standard'; print header(); # rest of code
And as an added bonus, here is a one-liner that will replace the string 'date' with localtime:
perl -pie 's/date/localtime/eg' guestbook.html

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--