It might be that you don't have it set up as a handler. Look in /etc/apache/srm.conf for AddHandler cgi-script .cgi
I think it's commented out by default. Just uncomment it, and change your script's extenstion to .cgi (You could add .pl as a handler, but it's better just to stick with cgi). Hope that helps, Rob