ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
Re: CPAN and module VERSION numbers generated from CVS/RCS
by John Peacock other posts by this author
Aug 2 2001 2:00PM messages near this date
Re: CPAN and module VERSION numbers generated from CVS/RCS | Re: CPAN and module VERSION numbers generated from CVS/RCS
Michael G Schwern wrote:
>  
>  v10.10 is a special construct in Perl IIRC, and its comparision rules
>  are documented.  I can't seem to remember where the docs are, though.
>  
>  > I'd like to here thoughts on how this inconsistency
>  > could be resolved, and again, how to work best with
>  > VERSION strings that are derived from RCS/CVS Revisions numbers.
>  
>  The problem here is that CPAN decided, whether for good or bad, that
>  they were going to go with numeric comparision of version numbers.  So
>  10.10 < 10.9.  Even though this might seem like a mistake, I think the
>  historical reason was to defend against authors writing this:
>  
>      $VERSION = 10.10;
>  
>  and forgetting that its going to come out as 10.1.
>  
>  For good or for ill, that's the way it is.  Making all the various
>  core routines to check versions consistant, and writing down a
>  definitive guide to how checks are done is a Good Thing.  Making sure
>  Exporter and CPAN and use() do the same thing with versions is important.

I would prefer to go this route, and would be happy to help with a 
little poke in the right direction.  I would actually like to make sure 
this would be the new example code:

	$VERSION = qw($Revision: 1.51 $)[1];

since that is vastly easier than the leaping and jumping that is 
suggested in perlmod.  Would the correct place to patch be Exporter
and have CPAN import that one routine?  Where does use() get its logic
from and should that be patched and imported into both Exporter and
CPAN?  Or do I track down the v.10.10 code and make all of them use
that instead?

John

--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
Thread:
David Dyck
Johan Vromans
Jim Cromie
John Peacock
Graham Barr
Elaine -HFB- Ashton
Michael G Schwern
Ronald J Kimball
Michael G Schwern
John Peacock
David M. Lloyd
Ronald J Kimball
Elaine -HFB- Ashton

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved