The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


Dist::Zilla::Plugin::VersionFromMainModule - Set the distribution version from your main module's $VERSION


version 0.04




This plugin sets the distribution version from the $VERSION found in the distribution's main module, as defined by Dist::Zilla.

This plugin is useful if you want to set the $VERSION in your module(s) manually or with some sort of post-release "increment the $VERSION" plugin, rather than letting dzil add the $VERSION based on a setting in the dist.ini.

You can override the distribution version by setting the V environment variable, e.g.: V=1.23 dzil release.


This code is mostly the same as what Christopher J. Madsen's Dist::Zilla::Plugin::VersionFromModule module does. Unfortunately, that module is only shipped as part of a larger distribution, and that distribution has not been updated despite the fact that it is failing tests with newer versions of dzil.


Bugs may be submitted at or via email to

I am also usually active on IRC as 'autarch' on irc://


The source code repository for Dist-Zilla-Plugin-VersionFromMainModule can be found at


  • Christopher J. Madsen <>

  • Dave Rolsky <>


Karen Etheridge <>


This software is copyright (c) 2009 - 2018 by Christopher J. Madsen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

The full text of the license can be found in the LICENSE file included with this distribution.