perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: Making .pm files run.
Date Mon, 15 Jan 2007 23:11:50 GMT
On Mon, 2007-01-15 at 14:31 -0800, iNetForce wrote:
>  Alias /go/ /usr/home/httpd/domains/www.ehunter.com/ehunter_perl/Handlers/

This is probably not what you want.  Perl doesn't look for modules based
on the URL, it looks for them in @INC.  You need to put this module
somewhere that is in your @INC, or else add this directory to @INC.
Sometimes people add it putting a "use lib" statement in their conf
file, like this:

<Perl>
  use lib '/path/to/my/modules';
</Perl>

You don't need the Alias.  The Location block handles routing requests
to the module Recipe, so you just have to help perl find the file
Recipe.pm by getting the Recipe.pm file into a path that's in @INC.

- Perrin


Mime
View raw message