This queue is for tickets about the CPAN CPAN distribution.

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

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

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



Subject: $_ is clobbered in CPAN::Module->uptodate
As the subject says at some point in CPAN::Module->uptodate $_ is clobbered e.g
Show quoted text
shell> perl -MCPAN -le '$_ = "POSIX"; print; $m =
CPAN::Shell->expand(Module => $_); $m->uptodate; print POSIX CPAN: Storable loaded ok Going to read /home/brookd/.cpan/Metadata Database was generated on Thu, 09 Mar 2006 12:27:25 GMT our $VERSION = "1.07";
Show quoted text
shell> pmvers CPAN
1.87
Subject: Re: [rt.cpan.org #18196] $_ is clobbered in CPAN::Module->uptodate
Date: Fri, 17 Mar 2006 00:21:05 +0100
To: bug-CPAN@rt.cpan.org
From: andreas.koenig.gmwojprw@franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Thu, 16 Mar 2006 07:41:04 -0500 (EST), " via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> As the subject says at some point in CPAN::Module->uptodate $_ is > clobbered e.g
Show quoted text
shell> perl -MCPAN -le '$_ = "POSIX"; print; $m =
Show quoted text
> CPAN::Shell->expand(Module => $_); $m->uptodate; print > POSIX > CPAN: Storable loaded ok
Show quoted text
> Going to read /home/brookd/.cpan/Metadata
Show quoted text
> Database was generated on Thu, 09 Mar 2006 12:27:25 GMT
Show quoted text
> our $VERSION = "1.07";
Show quoted text
shell> pmvers CPAN
Show quoted text
> 1.87
Works or me. Either already fixed or dependent on OS or perl. Regardlss, for any case I added one more local($_) and checked in as revision 714. If you want to checkout current version, run 'make checkout' (svn required). Thanks for the report, -- andreas
Subject: Re: [rt.cpan.org #18196] $_ is clobbered in CPAN::Module->uptodate
Date: Fri, 17 Mar 2006 00:29:47 +0000
To: bug-CPAN@rt.cpan.org
From: "Dan Brook" <mr.daniel.brook@gmail.com>
On 3/16/06, andreas.koenig.gmwojprw@franz.ak.mind.de via RT <bug-CPAN@rt.cpan.org> wrote:
Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18196 > >
> >>>>> On Thu, 16 Mar 2006 07:41:04 -0500 (EST), " via RT" <bug-CPAN@rt.cpan.org> said:
>
> > As the subject says at some point in CPAN::Module->uptodate $_ is > > clobbered e.g
>
> shell> perl -MCPAN -le '$_ = "POSIX"; print; $m =
> > CPAN::Shell->expand(Module => $_); $m->uptodate; print > > POSIX > > CPAN: Storable loaded ok
>
> > Going to read /home/brookd/.cpan/Metadata
>
> > Database was generated on Thu, 09 Mar 2006 12:27:25 GMT
>
> > our $VERSION = "1.07";
> shell> pmvers CPAN
> > 1.87
> > Works or me. Either already fixed or dependent on OS or perl.
I managed to track it down to ExtUtils::MM_Unix in the parse_version function (where $_ isn't localised). I mentioned this when I resolved the bug but for some reason my comments weren't included (I haven't used RT in years, and it shows ;). Thanks for the prompt response! Dan
Tracked down by requestor to ExtUtils::MM_Unix 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.