The fact that the .pl extention does not work, would be the result of Apache's configuration. It is not currently set up to recognize the .pl extention as a valid cgi-script. This configuration is controlled in the
httpd.conf file.
For now, if you use the .cgi exention, and link the file to the Perl interpreter with the proper
Shebang (#!), it should work fine.