Subject: | Use of uninitialized value |
Trying out CPAN in a recent bleadperl, I see a lot of the following...
Use of uninitialized value $command in pattern match (m//) at
/home/steve/bleadperl/lib/5.9.5/CPAN/HandleConfig.pm line 342.
Use of uninitialized value $command in pattern match (m//) at
/home/steve/bleadperl/lib/5.9.5/CPAN/HandleConfig.pm line 342.
Use of uninitialized value $command in pattern match (m//) at
/home/steve/bleadperl/lib/5.9.5/CPAN/HandleConfig.pm line 342.
Use of uninitialized value $command in pattern match (m//) at
/home/steve/bleadperl/lib/5.9.5/CPAN/HandleConfig.pm line 342.
Use of uninitialized value $command in pattern match (m//) at
/home/steve/bleadperl/lib/5.9.5/CPAN/HandleConfig.pm line 342.
The following patch fixes this...
--- lib/CPAN/HandleConfig.pm.old 2006-10-19 13:47:12.000000000 -0500
+++ lib/CPAN/HandleConfig.pm 2006-10-19 13:47:43.000000000 -0500
@@ -340,6 +340,7 @@
my $quote = $CPAN::Config->{commands_quote} || $quotes;
if ($quote ne ' '
+ and defined($command)
and $command =~ /\s/
and $command !~ /[$quote]/) {
return qq<$use_quote$command$use_quote>