perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj2taylo <>
Subject Re: mod_perl problems - require file
Date Wed, 13 Dec 2006 13:49:30 GMT

Thanks for the link, I'll investigate that further.

Correct, moduleX.methods has sub routines defined, but is not itself a
package.  This is all part of a legacy system, and is used as a
form handler, so moduleX.methods exists purely for architectural reasons
(separating certain functions from the form handling functions).

This architectural approach has worked fine for years, and as stated before,
there were no changes to moduleX.methods or changes to the top of
(where the require stmt is). 

Perrin Harkins wrote:
> aj2taylo wrote:
>> ERR: 24: Line 1: Error in Perl code: Can't locate object method
>> "subRoutineA" via package "moduleX" (perhaps you forgot to load
>> "moduleX")
>> at path/ line 123.
> Sounds like a variation of this:
>> The module "" has a require at the beginning of the file, in
>> the
>> format:
>> package moduleX;
>> require "moduleX.methods";
> Is moduleX.methods a file with sub definitions that doesn't declare a 
> package?  Why are these subs not in the moduleX file?
> - Perrin

View this message in context:
Sent from the mod_perl - General mailing list archive at

View raw message