use vars qw($bootstrapping);
BEGIN {
- if (grep { /^--bootstrap(?:=(.*))?$/ } @ARGV) {
+ if (my ($x) = grep { /^--bootstrap(?:=.*)?$/ } @ARGV) {
+ @ARGV = grep { !/^--bootstrap(?:=.*)?$/ } @ARGV;
$bootstrapping = 1;
+ $x =~ /^--bootstrap(?:=(.*))?$/;
my @args = (defined $1 ? ($1) : ());
$ENV{PERL_MM_USE_DEFAULT} = 1;
$cpan_command .= 'force("install","ExtUtils::MakeMaker"); ';
}
if ($cpan) {
- $cpan_command .= 'install("CPAN"); ';
+ $cpan_command .= 'force("install","CPAN"); ';
}
if(length $cpan_command) {
system($^X, '-MCPAN', '-e', $cpan_command);