On Nov 21, 2007, at 2:44 PM, Michael G Schwern wrote:

Matisse Enzer wrote:
I am looking for a way to run a fully-automated CPAN build (using
CPAN::Shell) of a local Perl module and its dependencies, but, I need to make REMOVE some directories from the compiled-in @INC during the build
process.

While it is not documented, you can override what perl CPAN.pm uses with $CPAN::Shell. So you can write a little @INC modification module and set

        $CPAN::Shell = "$^X -MINC::Surgery";

That should work.
Hmm, sounds promising.

(For the ignorant, like myself: $^X is $EXECUTABLE_NAME under 'use English' and is the name used to execute the current Perl.)

I will give it a try.

-M


-------------------------------------------------------
Matisse Enzer <[EMAIL PROTECTED]>
http://www.matisse.net/  - http://www.eigenstate.net/



Reply via email to