Here are the correct paths to the common server resources that CGI scripts often require:
Date : /bin/date
Sendmail : /usr/lib/sendmail
Path to Perl interpreter : #!/usr/bin/perl
Place your cgi scripts in the cgi-bin folder of your webspace.