Don't worry about it! Look at this code I wrote to handle form submission on one of our websites recently
Code:
#!/usr/local/bin/perl
$SEND_MAIL = '/usr/lib/sendmail';
#___________________________________________________________________________
#
# DONE!
#___________________________________________________________________________
$| = 1;
use CGI;
$query = new CGI;
$query->import_names('A');
#######################################################################################
#######################################################################################
print "Location: http://www.****.co.uk/****/submit-thankyou.html\n\n";
open(MAIL,"|$SEND_MAIL -t");
print MAIL "To: wil\@****.co.uk\n";
print MAIL "From: $A::email ($A::name)\n";
print MAIL "Subject: ****: Submit Recipe\n\n";
print MAIL "The following information has been sent from the **** Submit Recipe Form:\n";
print MAIL "-------------------------------------------------------------------------------\n";
print MAIL "\n";
print MAIL "$A::name\n\n";
print MAIL "$A::email\n\n\n";
print MAIL "$A::recipe\n\n";
print MAIL "-------------------------------------------------------------------------------\n";
print MAIL "\n";
close (MAIL);
exit;
#######################################################################################
#######################################################################################
- wil