Getting a Perl file to run under Ubuntu?

Okay, start with that. And then maybe scan over this document for some of the Apache configuration
http://www.ubuntugeek.com/how-to-install-apache2-webserver-with-phpcgi-and-perl-support-in-ubuntu-server.html