Skip Menu |

This queue is for tickets about the Text-NSP CPAN distribution.

Report information
The Basics
Id: 24061
Status: resolved
Priority: 0/
Queue: Text-NSP

People
Owner: Nobody in particular
Requestors: jleffler [...] earthlink.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Problem with CPANPLUS 0.076 misidentifying versions after installing Text::NSP 1.03
Date: Sat, 23 Dec 2006 10:34:03 -0800
To: tpederse [...] umn.edu, Bugs in CPANPLUS via RT <bug-CPANPLUS [...] rt.cpan.org>, bug-text-nsp [...] rt.cpan.org
From: Jonathan Leffler <jleffler [...] earthlink.net>
Dear Ted and CPANPLUS Maintenance team, I installed Text::NSP v1.03 without any problems, but after that, CPANPLUS complains that Text::NSP::Measures is out of date because the installed version is 0.01 and not the 0.97 that is recorded on CPAN. Looking at the Measures.pm file, it appears that the trouble is because the POD precedes the code (specifically, it precedes the code that defines the version of Measures.pm), and CPANPLUS is not noticing that the VERSION code it is looking at is in POD and not in code. I'm reporting that as a bug to the CPANPLUS team, Ted, but there's also an easy fix for Measures.pm, namely to move the code that defines the version of Measures.pm up to near the front of the module. (I added an '=cut' line before '=head1 DESCRIPTION' and moved 6 paragraphs of code defining the package and its version up the file - the problem no longer occurs (CPANPLUS does not complain that T::NSP::M is at version 0.01). For the CPANPLUS team - I'm using: CPANPLUS::Shell::Default -- CPAN e[...] (v0.076) *** Using CPANPLUS::Backend v0.076. ReadLine support enabled. This is with Perl 5.8.8 on MacOS X 10.4.8. I'll supply 'perl -V' output if you need it. -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Thanks for this information, and sorry for the ever so tardy response. Text-NSP is in a fairly steady state right now, although a small clean up version is in the works, so we'll include this as a part of that, just in case it remains a problem in CPANPLUS. Cordially, Ted On Sat Dec 23 13:34:41 2006, jleffler@earthlink.net wrote: Show quoted text
> Dear Ted and CPANPLUS Maintenance team, > > I installed Text::NSP v1.03 without any problems, but after that, > CPANPLUS complains that Text::NSP::Measures is out of date because the > installed version is 0.01 and not the 0.97 that is recorded on CPAN. > > Looking at the Measures.pm file, it appears that the trouble is because > the POD precedes the code (specifically, it precedes the code that > defines the version of Measures.pm), and CPANPLUS is not noticing that > the VERSION code it is looking at is in POD and not in code. > > I'm reporting that as a bug to the CPANPLUS team, Ted, but there's also > an easy fix for Measures.pm, namely to move the code that defines the > version of Measures.pm up to near the front of the module. (I added an > '=cut' line before '=head1 DESCRIPTION' and moved 6 paragraphs of code > defining the package and its version up the file - the problem no longer > occurs (CPANPLUS does not complain that T::NSP::M is at version 0.01). > > For the CPANPLUS team - I'm using: > > CPANPLUS::Shell::Default -- CPAN e[...] (v0.076) > *** Using CPANPLUS::Backend v0.076. ReadLine support enabled. > > This is with Perl 5.8.8 on MacOS X 10.4.8. I'll supply 'perl -V' output > if you need it. >
We have just released Text-NSP v1.05, and we have followed the advice in this ticket and moved the version info in Measures.pm up higher in the file, and the problem appears to be resolved. Thanks again for the report, and the tip about how to fix it.