in reply to Content-type: text/html

!#/usr/bin/perl

Should be:

#!/usr/bin/perl

Update: Please read How do I compose an effective node title?. Consider using a proper CGI framework (CGI or a something else) if you plan on making CGI scripts. For reference Ovid's CGI Course.