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

Re: pop @INC (".")

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
March 8, 2012 22:47
Subject:
Re: pop @INC (".")
Message ID:
20120309074704.46aefcd4@pc09.procura.nl
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.

I completely agree with Abigail and TomC

> > Is there a way to do that today with Configure?  I think that's what
> > Todd wants to do -- *optional* not default.
> 
> Not at the moment. I have to patch perl.c in order to remove it. 
> 
> I'm pretty sure I could provide such a patch on my own. It turns out
> there's only about 4 test files in core that need patching if "." is
> not in the path. At the moment, I'm hearing some distaste for the
> idea, but also some interest. So I'll be sending a patch for
> discussion once 5.16 is put to bed.
> 
> Todd

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.14   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

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