develooper Front page | perl.perl5.porters | Postings from March 2012

Re: pop @INC (".")

Thread Previous | Thread Next
From:
Todd Rinaldo
Date:
March 8, 2012 22:58
Subject:
Re: pop @INC (".")
Message ID:
89C37B59-3765-4467-B564-F8D454E5A8AC@cpanel.net

On Mar 9, 2012, at 12:47 AM, H.Merijn Brand wrote:

> On Thu, 8 Mar 2012 17:08:15 -0600, Todd Rinaldo <toddr@cpanel.net>
> wrote:
> 
>> 
>> On Mar 8, 2012, at 4:58 PM, David Golden wrote:
>> 
>>> On Thu, Mar 8, 2012 at 5:57 PM, Abigail <abigail@abigail.be> wrote:
>>>> 
>>>> If someone wants "." not to be in @INC, (s)he has a couple of options:
>>>> - build a Perl with an @INC that does not have "."
>> 
>> I'm not looking to enforce this on all distros, but I think it could
>> be a useful Configure option 
> 
> I don't. If you want it disabled sitewide, Configure with sitecustomize
> and manage the removal of '.' in there.

As best I can tell at the moment, sitecustomize would not do what you're describing,

From what I can tell, there is no way short of patching perl.c to remove "." from @INC in the perl binary. This would have to be patched out or wrapped in a #ifdef of some type:

    if (!PL_tainting)
        S_incpush(aTHX_ STR_WITH_LEN("."), 0);


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About