Apache 1.3.11
mod_perl/1.21
HTML::Embperl 1.3b2
I ran into strange trouble today. Program/script modules in two different
location, but with identical names e.g. MyDBI.pm . Scripts always start
with BEGIN {unshift @INC,"location"}; . Now when the scripts run, @INC is
ignored every fifth time, and script tries to use MyDBI.pm in other
location (names are identical, but not the content). So the error occurs.
When this happens, error message looks like:
[24080]ERR: 24: Line 22: Error in Perl code: Can't locate A_Authen.pm in
@INC (@INC
contains: /export/teine/webdata/poolik.all.ee/html/betoonelement/antti/mod
/usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .
/usr/local/apache/ /usr/local/apache/lib/perl) at
/usr/local/webdata/poolik.all.ee/html/betoonelement/proge/e_tellimuste_yv.html
line 43.
BEGIN failed--compilation aborted (in cleanup) Can't locate
A_Authen.pm in @INC (@INC
contains: /export/teine/webdata/poolik.all.ee/html/betoonelement/antti/mod
/usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .
/usr/local/apache/ /usr/local/apache/lib/perl) at
/usr/local/webdata/poolik.all.ee/html/betoonelement/proge/e_tellimuste_yv.html
line 43.
BEGIN failed--compilation aborted at
/usr/local/webdata/poolik.all.ee/html/betoonelement/proge/e_tellimuste_yv.html
line 43.
Apache/1.3.11 (Unix) mod_perl/1.21 HTML::Embperl 1.3b2 [Thu Nov 23
18:01:45 2000]
So, I wonder, does the unshift at @INC count or not? Do the handlers get
mixed or what is the problem, and how to use two identical modules at
different locations?
Greetings,
Antti
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]