If you've turned on Dynamic Content, then there are up to three reasons that your cgi script isn't working:
1. The script has a bug or syntax error that prevents it from running. Solution: Test the script from the command prompt using perl -c script_name. If perl reports compile errors, you have syntax problems that need to fixed. If perl reports nothing, have a look at the apache error logs to see if apache is having a problem executing the script. Certain types of cgi bugs will allow the script to execute and run, but not display content via apache. This type of bug can be difficult to track down.
2. The ownership of the script is such that apache can't execute it. Solution: chown admin:shared script_name
3. The permissions of the script are such that apache can't execute it. Solution: chmod 755 script_name.
Greg Zartman.