Sort instructions: edit your email.cgi and change the very first line of the code from:
# !/usr/bin/perl -s
to:
#!/usr/bin/perl -s

(notice no space after #)