| Store | Cart

Re: pop @INC (".")

From: Paul Johnson <p...@pjcj.net>
Fri, 9 Mar 2012 15:26:26 +0100
On Sat, Mar 10, 2012 at 02:09:55AM +1300, Kent Fredric wrote:
> On 10 March 2012 01:25, Paul Johnson <p...@pjcj.net> wrote:> > > Yes, it's analogous to having "." in $PATH, and perhaps it's obvious to> > others, but I'd quite like to see some code showing why having "." in> > @INC is undesirable / unwise / dangerous / a security problem.> >> > Has the presence of "." in @INC caused problems, or is this a> > theoretical concern?> > I think a more useful thing to do, might be instead of completely> removing q{.} from @INC, would be replacing q{.} with a hook of sorts> that triggers when a file would otherwise be loaded from q{.} so you> can decide what to do with it.

It's possible.  But until we know exactly what problem we are solving
it's rather hard to say.

-- 
Paul Johnson - p...@pjcj.net
http://www.pjcj.net

Recent Messages in this Thread
Todd Rinaldo Mar 08, 2012 07:38 pm
David Golden Mar 08, 2012 08:10 pm
Todd Rinaldo Mar 08, 2012 08:20 pm
David Golden Mar 08, 2012 08:45 pm
Jan Dubois Mar 08, 2012 08:58 pm
Todd Rinaldo Mar 08, 2012 10:37 pm
Reini Urban Mar 08, 2012 11:06 pm
H.Merijn Brand Mar 09, 2012 06:56 am
Todd Rinaldo Mar 09, 2012 07:16 am
Tom Christiansen Mar 09, 2012 01:18 pm
Niko Tyni Mar 09, 2012 04:44 pm
Jesse Luehrs Mar 08, 2012 11:16 pm
Steffen Schwigon Mar 12, 2012 01:15 pm
Offer Kaye Mar 08, 2012 08:10 pm
Abigail Mar 08, 2012 10:57 pm
David Golden Mar 08, 2012 10:58 pm
Todd Rinaldo Mar 08, 2012 11:08 pm
H.Merijn Brand Mar 09, 2012 06:47 am
Todd Rinaldo Mar 09, 2012 06:58 am
Jan Dubois Mar 09, 2012 07:24 am
Tom Christiansen Mar 09, 2012 12:24 am
Jan Dubois Mar 09, 2012 12:54 am
Tom Christiansen Mar 09, 2012 02:02 am
Todd Rinaldo Mar 09, 2012 06:59 am
demerphq Mar 09, 2012 07:27 am
Aristotle Pagaltzis Mar 09, 2012 09:33 am
Todd Rinaldo Mar 09, 2012 11:35 am
David Golden Mar 09, 2012 11:57 am
Paul Johnson Mar 09, 2012 12:25 pm
Kent Fredric Mar 09, 2012 01:09 pm
Paul Johnson Mar 09, 2012 02:26 pm
Konovalov, Vadim (Vadim)** CTR ** Mar 11, 2012 06:04 am
Messages in this thread