This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
22277
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
SMPETERS [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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>
On Thu Oct 19 14:49:55 2006, SMPETERS wrote:
Show quoted text
> 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
Show quoted text
> +++ 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>
This is CPAN-1.88_55.
Subject: Re: [rt.cpan.org #22277] Use of uninitialized value
Date: Thu, 19 Oct 2006 21:51:07 +0200
To: bug-CPAN@rt.cpan.org
From: andreas.koenig.gmwojprw@franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Thu, 19 Oct 2006 14:49:56 -0400, " via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> --- 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;
Show quoted text
> if ($quote ne ' ' > + and defined($command) > and $command =~ /\s/ > and $command !~ /[$quote]/) { > return qq<$use_quote$command$use_quote>
Thank you! I've applied this to my copy (rev. 1076) -- andreas
Patch applied in 1.88_56. Thanks!


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.