Apache configuration 

<VirtualHost *:80>
    ServerName myapplication.mydomain.com

    <Location />
        SetHandler perl-script
        <Perl>
            use lib '/path/to/libdir';
        </Perl>
        PerlHandler MyApplication
    </Location>
</VirtualHost>