[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mod_perl and CGI::Application.. Strange Behaviour


Perl Modulator wrote:

> I am trying to create mod_perl based appln using CGI::Application and I am
> just printing a message. Here is the Perl Module Test.pm, which will be
> loaded.

Don't use Test.pm as a module name. There's already something in core Perl with
that name. It's quite likely that you are loading that instead of your test package.

> use lib '/docroot/cgi-perl/test';

This adds the path to @INC at the end for searching. So your Test.pm will be
found after the core Perl one.

-- 
Michael Peters
Developer
Plus Three, LP


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.