in reply to How to increment subversion number inside Perl program

If you are willing to depart from your current method of constructing the version, Perl::Version comes with a script, perl-reversion, which can bump anything that looks like a version number in a script.

I use that script to bump the version when releasing a module. Likely, it wants a line

$VERSION= '1.0.3';

in your script to determine the version, instead of what you have now.