My my Apache perl installation, the lib search path is different from the system wide path
I am using Linux
My Apache Perl (either under mod_perl or cgi) produced the following results
This is the content of @INC
/usr/lib/perl5/5.8.4/i686-linux-thread-multi-ld /usr/lib/perl5/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi-ld /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/local/apache2/ /usr/local/apache2/lib/perl
======= In my /etc/profile I added my testing directory and . These two are not here; furthermore /usr/local/apache2/ /usr/local/apache2/lib/perl
are not in my system perl @INC
There are must be some way to set the Apache Perl @INC to include the current directory, some where other than using the
push @INC, "."; inside my script.
Does anyone know how?
"." is automatically removed when that taint mode (-T) is on. Refer to the perlsec Perl manpage for more info. This has nothing to do with mod_perl.
> /usr/local/apache2/ > /usr/local/apache2/lib/perl
are added when running mod_perl 2, for mp1 compatibility. http://perl.apache.org/docs/2.0/user/install/install.html#MP_COMPAT_1X disable it to avoid this from happening.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html