first you should try to run a hello world script such as:
#!/usr/bin/perl
print ("Content-type: text/html\n\n");
print "hello world";
cgi script running problems are almost always one of the following:
- the script was not uploaded (ftp) in ascii format
- the script isn't marked to execute (using chmod)
- the first line of perl in your script is wrong - some web servers put perl in different locations.
- you are calling the script wrong - some servers have different calling conventions