mod_perl: Modules should always be required by module name, not
Guillaume Rousse
Guillaume.Rousse at inria.fr
Thu Jun 29 14:45:41 UTC 2006
Max Kanat-Alexander wrote:
> 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";
Why require (evaluated at runtime), instead of use (evaluated at compile
time) ?
And BTW, relationship with mod_perl is tedious: this is a general perl
guideline.
--
Guillaume Rousse
Projet Estime, INRIA
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex - France
More information about the developers
mailing list