On 27/05/13 14:37, Nageswara rao Gurram wrote:
> My mod_perl simply can't load XML::Generator. As soon as I put "use
> XML::Generator;" in a perl startup file and include in httpd.conf,
> Apache won't start, complaining that it can't locate
> XML/Generator/overload.pm in @INC.
> 
> But the package XML::Generator::overload is in the same file as
> XML/Generator.pm. Furthermore, when I go through the commandline (say
> "perl -d -MXML::Generator -e 1"), all is fine.
> 
> And when I delete Apache2::porting.pm module from conf file, apache
> starting fine.

Modperl does nothing special with C<use> or C<require>.

The only reason I can think of is that something tampers with %INC or
@INC or perhaps %XML::Generator::.

Do you use Apache2::Reload?

Do you use PerlOptions +Autoload?

Do you have perhaps relative path names in $PER5LIB or similar?

Torsten

Reply via email to