http://www.perlmonks.org?node_id=758859


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.