From Lunarpages Web Hosting Wiki
To enable Perl/CGI, edit your .htaccess file and add the following:
AddHandler cgi-script .cgi .pl
All Perl scripts should be uploaded into your /public_html/cgi-bin/ folder. To execute make sure to set the permissions to 755.
Want to read this in another language?