develooper Front page | perl.module-authors | Postings from September 2009

how to set $VERSION throughout distribution

Thread Next
Jonathan Swartz
September 11, 2009 18:08
how to set $VERSION throughout distribution
Message ID:
What's a good policy for setting $VERSION in the non-"main" modules of  
a distribution?

e.g. I've got Server-Control-0.08, and Server::Control contains

     our $VERSION = '0.08';

but none of the other modules in the distribution (e.g.  
Server::Control::Apache) contain a $VERSION. I can see at least three  

1) Don't bother putting $VERSION anywhere except the main module
2) Put a different $VERSION in each module, depending on when that  
module itself changes
3) Put the same $VERSION in each module, matching the distribution and  
the main module

1 clearly wins for laziness - is there a reason to do more? If so,  
pros/cons to 2 vs 3?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About