|Please make sure the following have been done:
* upload your script in ASCII transfer mode
* chmod it to 755 or rwxr-xr-x
* have the right perl path
* does your script generate an error, print to stdout and all that before the content-type header? Try with the content-type header at the very beginning.