> Because then you have to update more than one module.  Shawn's Programming
> Rules #5
> <http://www.perlfoundation.org/perl5/index.cgi?shawn_h_corey#shawn_s_programming_rules>:
>  5. If you have the same data in two places, they will get out off sync.
> Write the code to detect and correct this now, because when it happens, it
> will be too late.

You just need something to keep them in sync.  I have a script that
sets all the version and double-checks them (and does so much more as
well) before I make a release to CPAN.

> package Workflow;
> use Workflow::VERSION;
> $Workflow::VERSION = $Workflow::VERSION::VERSION;

This sort of strategy caused problems with the CPANPLUS module code
awhile back in that the 'cpan->r' command showed its submodules to
have no version numbers.  Not sure if that's all been fixed now, but
it did illustrate to me that trying to set versions via a version
module is not a robust scheme.

Reply via email to