mod_perl: Modules should always be required by module name, not by file name
Max Kanat-Alexander
mkanat at bugzilla.org
Thu Jun 29 13:38:10 UTC 2006
Another mod_perl note for everybody:
Always require/use modules by their package name, not by their file
name.
That is, don't do:
require "Bugzilla/Config/Common.pm";
Instead do:
require "Bugzilla::Config::Common";
This allows mod_perl to always grab the module out of the correct
location, by searching @INC. It also means that you don't have to worry
about specifying the absolute path to the module, which you'd have to
always do if you wanted to require it by name.
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla Services. And Everything Else, too.
More information about the developers
mailing list