| Store | Cart

RE: pop @INC (".")

From: Konovalov, Vadim (Vadim)** CTR ** <vadi...@alcatel-lucent.com>
Sun, 11 Mar 2012 07:04:48 +0100
> From: Kent Fredric [mailto:kent...@gmail.com] > Sent: Friday, March 09, 2012 4:10 PM> 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 bad idea to do in Perl core - because this is one more logic to 
implement, document and support, 
and in return you have very little benefit (IMO more damage than benefit)

But even better - if you need this logic for your own application - you can
do it as a CPAN module right today. Overload @INC with all of your
required logic, shuffle everything you need on its change - and here you go.

Regards,
Vadim.
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