Duplicate entries in @INC

2001-02-28 Thread Arun Theeban

Hi All,
I am using a linux box,with apache server,mod-perl.

I have put my own modules in a directory and  added
the directory into @INC in my "startup.pl" file of the
Apache Server.(I used "qw" to do that).

All my programs works fine. 

But when I print all the values of @INC in mod-perl
through browser ,I see duplicate entries for my
directory.But under CGI, I don't see any

What might be the reason? 

-Thanks
Arun

-Thanks
Arun

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Duplicate entries in @INC

2001-02-28 Thread Stas Bekman

On Wed, 28 Feb 2001, Arun Theeban wrote:

 Hi All,
 I am using a linux box,with apache server,mod-perl.

 I have put my own modules in a directory and  added
 the directory into @INC in my "startup.pl" file of the
 Apache Server.(I used "qw" to do that).

 All my programs works fine.

 But when I print all the values of @INC in mod-perl
 through browser ,I see duplicate entries for my
 directory.But under CGI, I don't see any

 What might be the reason?

 -Thanks
 Arun

 -Thanks
 Arun

That's because you sig is duplicated :)

startup.pl has no influence for mod_cgi (what you call CGI). Check whether
you have PERL5LIB env var set in the shell...

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: Duplicate entries in @INC

2001-02-28 Thread Perrin Harkins

 But when I print all the values of @INC in mod-perl
 through browser ,I see duplicate entries for my
 directory.But under CGI, I don't see any

 What might be the reason?

I can think of two possibilities.  First, you might be adding
/usr/local/apache/lib/perl (or where ever your Apache lives + /lib/perl) to
@INC, which mod_perl does automatically.  Second, your startup.pl may be
running twice because Apache runs the config file twice on startup.  Stas
posted a message a few days ago about seeing files pulled in from
PerlModule/PerlRequire commands running twice on startup, even though they
probably shouldn't.  See
http://forum.swarthmore.edu/epigone/modperl/crachoupro/Pine.LNX.4.30.0102231
[EMAIL PROTECTED] for more info and a workaround.

- Perrin