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 Graham Barr other posts by this author
Aug 2 2001 3:05PM messages near this date
Re: CPAN and module VERSION numbers generated from CVS/RCS | Re: CPAN and module VERSION numbers generated from CVS/RCS
On Thu, Aug 02, 2001 at 10:00:14AM -0400, John Peacock wrote:
>  > 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?

The code for use() is in C code, it is the UNIVERAL::VERSION method.
It was added because the check in Exporter is insufficient as it
does not allow version checking on packages that do not use Exporter.
Exporter should be changed to call PACKAGE-> VERSION($needed), then
it will use the same code.

Graham.
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