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.
This sounds like something that would be good to add to Devel::Hide. The author is a very nice fellow who welcomes patches. Well, he did for me anyway :-) -- header FROM_DAVID_CANTRELL From =~ /david.cantrell/i describe FROM_DAVID_CANTRELL Message is from David Cantrell score FROM_DAVID_CANTRELL 15.72 # This figure from experimentation