develooper Front page | perl.perl5.porters | Postings from February 2007

Re: [PATCH 5.8.x] 'Fix' Text::Balance version number

Thread Previous | Thread Next
From:
Jerry D. Hedden
Date:
February 8, 2007 07:33
Subject:
Re: [PATCH 5.8.x] 'Fix' Text::Balance version number
Message ID:
51406.36840.qm@web30204.mail.mud.yahoo.com
Jerry D. Hedden wrote:
> Add quotes around the value for $Text::Balanced::VERSION so
> that CPAN will not report that a module update is needed:
> 
> cpan> r
> Package namespace         installed    latest  in CPAN file
> Text::Balanced                    2  2.000000 
DCONWAY/Text-Balanced-v2.0.0.tar.gz

John Peacock wrote:
> I'm not sure I understand why this fix should be
> necessary.  2 is numerically equivalent to 2.000000, and
> quoting a $VERSION assignment should not make any
> difference (since there is no underscore involved).  What
> version of CPAN do you have installed that misses this?

CPAN 1.8802

> Do you have the full XS release of Text::Balanced (and
> hence version.pm) already installed?

No, and that is not the point.  5.8.x@30165 updated
Text::Balanced to 2.0.0 except for the following:

+# I really don't want to bring the XS version module into maint. So
for now,
+# I'm commiting the sin of Bowdlerising Damian's module:
+# use version; $VERSION = qv('2.0.0');
+$VERSION = 2.000000;

The problem with this is that after building and installing 
5.8.x@30165, and then running 'r' from the CPAN prompt, you
get:

Package namespace         installed    latest  in CPAN file
...
Text::Balanced                    2  2.000000 
DCONWAY/Text-Balanced-v2.0.0.tar.gz
...

This is no good.  It show there that an update is needed
when there shouldn't be.  My patch (which quotes the
2.000000) fixes this so that the above does not show up.


 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About