in reply to <pkg>::VERSION, git, hashes, shipit, Class::MOP, Moose, perl core support - what NOW makes sense.
You could make a module part of your distribution whose job is only to hold the distribution version number.
package Your::Dist::Version; # note no strict $VERSION = 1.23; sub import { my $pkg = caller; ${ "$pkg\::VERSION" } = $VERSION; } 1;
Then use Your::Dist::Version from every module in the distribution. Everything that does has the One True Version inserted into its namespace. You can change it in one place and keep other info in that one file as convenient.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: <pkg>::VERSION, git, hashes, shipit, Class::MOP, Moose, perl core support - what NOW makes sense.
by otto (Beadle) on Apr 21, 2009 at 20:44 UTC | |
Re^2: <pkg>::VERSION, git, hashes, shipit, Class::MOP, Moose, perl core support - what NOW makes sense.
by JavaFan (Canon) on Apr 21, 2009 at 22:11 UTC | |
by moritz (Cardinal) on Apr 21, 2009 at 22:37 UTC |
In Section
Meditations