I have a problem, which I have somewhat solved, but I am not
completely satisfied with the solution since it holds some problems.
I have 3 packages defined in separate files, I want these packages to have the same version.
My current solution in defining the version in a fourth package:
package PoorMansConfiguration::VERSION;
$VERSION = '1.34';
Which is then used in the 3 other packages:
BEGIN {
use PoorMans::Configuration::VERSION;
$VERSION = $PoorMans::Configuration::VERSION::VERSION;
};
The problem with this solution is that is not easily recognized by version parsing code, like the code used by Module::Build.
So is there a better way to solve my problem?