|Perl Monk, Perl Meditation|
$VERSION in module filesby bliako (Monsignor)
|on Mar 26, 2020 at 10:09 UTC||Need Help??|
bliako has asked for the wisdom of the Perl Monks concerning the following question:
I wonder what is the good practice with the $VERSION string in module files.
I assumed that each module file should have an our $VERSION = '1.2.3'; in it. Please correct me if this is not the correct format.
I also assumed that my Makefile maker ExtUtils::MakeMaker reads version from just one of those files using the key VERSION_FROM in its config.
I also assumed that the Version in the pod section of each module file must be set manually and cannot be read automatically from the $VERSION of that file.
My question is how do I go about and changing all those $VERSION strings and pod Version strings automatically when I create a new version of this module. I can create a script to change $VERSION and, with some risk, pod Versions but I wonder if there is a better way.