Re: [mp1] PERL5LIB handled backwards (mod_perl 1.27+)

[prev] [thread] [next] [Date index for 2005/02/09]

From: Stas Bekman
Subject: Re: [mp1] PERL5LIB handled backwards (mod_perl 1.27+)
Date: 02:02 on 09 Feb 2005
Gordon Lack wrote:
> Gordon Lack wrote:
> 
>>>>   While it now does unshift rather than push (so the entries end up at
>>>>the front of @INC, not the back) it does so backwards!
>>>>
>>>>  eg:
>>>>
>>>> PerlPassEnv PERL5LIB /dir1:/dir2:/dir3
>>>
>>>You mean, PerlSetEnv, don't you? PerlPassEnv doesn't accept values.
>>
>>   Yes, I did - but you get the idea :-).
> 
> 
>    Related bug.

>    Using PERL5LIB in this way does not add architecture-specific
> sub-dirs to @INC (which setting PERL5LIB in the environment does do).

why not fixing that too? should be as easy as copying the relevant bits of 
code from the perl source (just grep for PERL5LIB).

>    Suggested fix:
> 
>   Document the use of:
> 
> <Perl>
>    use lib qw( /dir1 /dir2 /dir3 );
> /Perl>
> 
> instead if you wish to affect mod_perl, or just use SetEnv if you just
> want to affect CGI (but those scripts *should* be using use lib
> themselves....IMHO).


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

(message missing)

Missing symbol: mod_perl2-RC3
Lack Mr G M 16:31 on 06 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Stas Bekman 16:53 on 06 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Gordon Lack 18:42 on 06 Jan 2005

Bug(?) in mod_perl-2 RC3
Gordon Lack 19:16 on 06 Jan 2005

Re: Bug(?) in mod_perl-2 RC3
Stas Bekman 16:36 on 10 Jan 2005

Re: Bug(?) in mod_perl-2 RC3
Gordon Lack 18:04 on 10 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Stas Bekman 16:40 on 10 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Gordon Lack 18:10 on 10 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Gordon Lack 18:31 on 10 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Stas Bekman 21:57 on 10 Jan 2005

Re: Bug(?) in mod_perl-2 RC3
Stas Bekman 22:24 on 10 Jan 2005

Re: [mp1] PERL5LIB handled backwards (mod_perl 1.27+)
Stas Bekman 02:02 on 09 Feb 2005

Generated at 11:30 on 23 Feb 2005 by mariachi v0.52