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 ChingThread Previous | Thread Next