On Nov 21, 2007, at 2:44 PM, Michael G Schwern wrote:
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";
I think it is actually
$CPAN::Perl
and, if the value you use contains any whitespace the entire command
will get quoted, which could break things.
For example, if you set:
$CPAN::Perl = "$^X -MINC::Surgery";
then CPAN will convert that to:
'perl -MINC::Surgery'
and if you have any makepl_args then:
'perl -MINC::Surgery' INSTALL_BASE=/some/path
which will break when CPAN calls:
system('perl -MINC::Surgery' INSTALL_BASE=/some/path);
with "file not found".
If you include some quotes when setting $CPAN::Perl then the auto-
quoting won't happen:
$CPAN::Perl = "$^X -M'INC::Surgery'"; # Will not get "safe_quote"
-------------------------------------------------------
Matisse Enzer <[EMAIL PROTECTED]>
http://www.matisse.net/ - http://www.eigenstate.net/