I suspect that scripts with permissions of 0777 may be blocked from running. Try 0755 instead.
And check your error log. People often forget to send out HTTP headers from their Perl scripts. This will cause a "Premature end of script headers" error message. The bare minimum requirement is a Content-Type header. Try putting this at the top of your script:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum