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

Re: [perl #41586] [PATCH] 5.8.8 Add incpush_oldversion forcompatible perl versions

Thread Previous | Thread Next
From:
Robin Norwood
Date:
March 1, 2007 12:21
Subject:
Re: [perl #41586] [PATCH] 5.8.8 Add incpush_oldversion forcompatible perl versions
Message ID:
xf4y7mg1zrq.fsf@solitude.devel.redhat.com
John Peacock <jpeacock@rowman.com.devel.redhat.com> writes:

> Andy Dougherty wrote:
>> However, it'd probably be best to do this in a lazy sort of way -- some of 
>> the vendor* or site* directories might well be remotely mounted, and 
>> spending time populating @INC even if not needed might not be appropriate.
>
> That's why I was thinking of doing it as a coderef at the tail end of @INC.
> This way, you only check the backwards compatible paths iff you didn't find the
> module requested already.  This would increase the length of @INC by a constant
> value (1).  I don't see any point in prepopulating @INC on the offchance that
> you might need it later.

fwiw, I've submitted RT #41657, which includes a patch related to this
issue as well - it adds a -R flag to *not* include paths this way.  Both
patches should probably be accepted or rejected as a unit.

Thanks,

-RN

-- 
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching

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