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

Re: mod_perl problems - require file


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/moduleX.pm line 123.

Sounds like a variation of this:
http://perl.apache.org/docs/1.0/guide/porting.html#Name_collisions_with_Modules_and_libs

The module "moduleX.pm" 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


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