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.
Alternatively, I seem to recall CPANPLUS having an explicit way to use a
different perl than the one which ran CPANPLUS.
--
<Schwern> What we learned was if you get confused, grab someone and swing
them around a few times
-- Life's lessons from square dancing