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

how to set $VERSION throughout distribution

Thread Next
From:
Jonathan Swartz
Date:
September 11, 2009 18:08
Subject:
how to set $VERSION throughout distribution
Message ID:
DA15CFE5-0C03-40D5-9D7A-F98590768883@pobox.com
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  
possibilities:

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?

Thanks
Jon


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