in reply to CSS for printing and tell-a-friend scripts
In addition to all the good advice you have recieved so far, I would check out this module:
CGI::Application::MailPage
It uses CGI::Application so you can subclass it to override some portions, but your instance script should be very small.