| Store | Cart

Re: pop @INC (".")

From: Reini Urban <rur...@x-ray.at>
Thu, 8 Mar 2012 17:06:10 -0600
On Thu, Mar 8, 2012 at 4:37 PM, Todd Rinaldo <tod...@cpanel.net> wrote:
> On Mar 8, 2012, at 2:58 PM, Jan Dubois wrote:>> On Thu, 08 Mar 2012, David Golden wrote:>>> Let me answer your points in reverse order.>>>>>>> Does anyone besides me share my concern that putting "." in the path>>>> isn't always necessarily desirable?>>>>>> I agree that it's not always desirable, but I'm not convinced that>>> it's never desirable, either. Or rather, if undesirable, how/when>>> should it be removed from @INC. Optionally with "-T" or mandatory>>> enforcement by the interpreter?>>>> I find it always undesirable.  What I usually want is mylib.pm,>> and '.' in @INC does provide similar functionality while testing>> from inside the script directory:>>>>    http://search.cpan.org/dist/mylib/mylib.pm>>>> If I really wanted '.' in @INC, then -I. is a cheap commandline>> option, or "BEGIN { push @INC, '.' }" a trivial script addition.>>>> But as I already said, I never really want '.' in @INC, I either>> want $FindBin::RealBin, or the directory pushed by mylib.pm.>>>> So I think a Configure option to build perl without '.' in @INC>> would be fine (and core tests should be updated to accommodate that),>> but a forced -T does not feel right to me.>> Jan says it better than me. This is my thinking.

Mine also.

. in @INC looks like a window-ism, where exe's are found in . before
looking at %PATH, and . included in $PATH is considered bad style.
-- 
Reini

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

Previous post: Re: pop @INC (".")
Next post: Re: pop @INC (".")